Create docker-publish.yml

This commit is contained in:
Alberto Xamin 2020-11-21 20:05:32 +01:00 committed by GitHub
parent 4fb80154da
commit 6f3e7c8ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
.github/workflows/docker-publish.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
context: backend
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: albertoxamin/bang/bang-backend
tag_with_ref: true