mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-26 03:24:13 +00:00
Add Github Docker repo publisher (#197)
This commit is contained in:
parent
27f8fdc117
commit
782e6d71b1
1 changed files with 28 additions and 0 deletions
28
.github/workflows/docker_publish.yml
vendored
Normal file
28
.github/workflows/docker_publish.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue