Add Github Docker repo publisher (#197)

This commit is contained in:
sergystepanov 2020-06-15 19:15:25 +03:00 committed by GitHub
parent 27f8fdc117
commit 782e6d71b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/docker_publish.yml vendored Normal file
View file

@ -0,0 +1,28 @@
# ------------------------------------------------------------------------
# Publish Docker image from the current snapshot into Github repository
# ------------------------------------------------------------------------
name: publish
# run only when pushing into the master, tagged with a v-prefix
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
docker-publish:
name: Publish Docker image
runs-on: ubuntu-latest
steps:
- name: Get the source
uses: actions/checkout@v2
- name: Publish to GitHub Packages
uses: docker/build-push-action@v1
with:
add_git_labels: true
tag_with_ref: true
username: ${{ github.ACTOR }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: giongto35/cloud-game/cloud-game