mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-19 01:24:26 +00:00
Enable legacy Github Docker Registry publishing workflow (#247)
* Update Docker publishing script
This commit is contained in:
parent
569c76a2f8
commit
3837e020cd
2 changed files with 9 additions and 10 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue