Add a docker build action

Created from workflow template
This commit is contained in:
Marc Di Luzio 2020-07-01 13:19:01 +01:00 committed by GitHub
parent b5707ab71c
commit 13482c1893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Build and Push Docker
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
VERSION=$(git describe --always --long --dirty --tags)
docker login docker.pkg.github.com -p ${{ secrets.GITHUB_TOKEN }}
docker build . --tag rove:$VERSION --tag rove:latest
docker push docker.pkg.github.com/mdiluz/rove/rove:$VERSION
docker push docker.pkg.github.com/mdiluz/rove/rove:latest