Skip to content

Update Dockerfile

Update Dockerfile #58

Workflow file for this run

name: Docker build
on:
- push
- pull_request
jobs:
docker:
name: Docker build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Docker version
run: docker --version
- name: Docker Login
uses: docker/login-action@v1
with:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
registry: "ghcr.io"
- name: Get Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
tags: type=ref,event=tag
- name: Build Docker image
uses: docker/build-push-action@v2
with:
file: "./Dockerfile"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true