-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish Docker images from the stable/unstable code.
v-tagged push -> v-tagged stable image with stable tag also master push -> dev tagged image
- Loading branch information
1 parent
eb10e20
commit 27e8a79
Showing
4 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
15 changes: 7 additions & 8 deletions
15
.github/workflows/docker_publish.yml → .github/workflows/docker_publish_stable.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
# ------------------------------------------------------------------------ | ||
# Publish Docker image from the current snapshot into Github repository | ||
# Publish Docker image from the stable snapshot into Github repository | ||
# ------------------------------------------------------------------------ | ||
|
||
name: publish | ||
name: publish-stable | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
docker-publish: | ||
docker-publish-stable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
|
||
- uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
add_git_labels: true | ||
tag_with_ref: true | ||
tags: latest | ||
tags: latest,${{ env.TAG }} | ||
|
||
registry: docker.pkg.github.com | ||
repository: ${{ github.REPOSITORY }}/cloud-game | ||
|
||
- name: Redeploy | ||
run: ./scripts/redeploy.sh | ||
run: ./scripts/redeploy.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ---------------------------------------------------------------------------- | ||
# Publish Docker image from the current master branch into Github repository | ||
# ---------------------------------------------------------------------------- | ||
|
||
name: publish-unstable | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
docker-publish-unstable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
add_git_labels: true | ||
tags: dev | ||
|
||
registry: docker.pkg.github.com | ||
repository: ${{ github.REPOSITORY }}/cloud-game |
This file was deleted.
Oops, something went wrong.
Empty file.