Add a docker build action
Created from workflow template
This commit is contained in:
parent
b5707ab71c
commit
13482c1893
1 changed files with 18 additions and 0 deletions
18
.github/workflows/docker.yml
vendored
Normal file
18
.github/workflows/docker.yml
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue