Enable legacy Github Docker Registry publishing workflow (#247)

* Update Docker publishing script
This commit is contained in:
sergystepanov 2020-11-25 00:22:37 +03:00 committed by Sergey Stepanov
parent 569c76a2f8
commit 3837e020cd
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
2 changed files with 9 additions and 10 deletions

View file

@ -3,26 +3,26 @@
# ------------------------------------------------------------------------
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
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
add_git_labels: true
tag_with_ref: true
username: ${{ github.ACTOR }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: ${{ github.REPOSITORY }}/cloud-game