Update and rename .github/workflows/dockerimage.yml to dockerimage.yml

This commit is contained in:
Stepan Kuzmin 2019-09-30 17:29:17 +03:00 committed by GitHub
parent b1d6ceda02
commit 4f0027c401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
dockerimage.yml Normal file
View File

@ -0,0 +1,17 @@
name: Docker Image CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build -t docker.pkg.github.com/urbica/martin/martin:latest .
- name: Push the image to the GitHub Package Registry
run: |
docker login docker.pkg.github.com -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push docker.pkg.github.com/urbica/martin/martin:latest
if: github.ref == 'refs/heads/master'