mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-25 11:03:56 +00:00
Pass version number as gh env when pushing Docker images
This commit is contained in:
parent
dc151f6a0b
commit
69f18d19e4
2 changed files with 6 additions and 2 deletions
4
.github/workflows/docker_publish_stable.yml
vendored
4
.github/workflows/docker_publish_stable.yml
vendored
|
|
@ -17,13 +17,15 @@ jobs:
|
|||
|
||||
- run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||
|
||||
- run: echo "V=$(./scripts/version.sh)" >> $GITHUB_ENV
|
||||
|
||||
- uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
add_git_labels: true
|
||||
tags: latest,${{ env.TAG }}
|
||||
build_args: VERSION=$(./scripts/version.sh)
|
||||
build_args: VERSION=${{ env.V }}
|
||||
|
||||
registry: docker.pkg.github.com
|
||||
repository: ${{ github.REPOSITORY }}/cloud-game
|
||||
|
|
|
|||
|
|
@ -15,13 +15,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: echo "V=$(./scripts/version.sh)" >> $GITHUB_ENV
|
||||
|
||||
- uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
add_git_labels: true
|
||||
tags: dev
|
||||
build_args: VERSION=$(./scripts/version.sh)
|
||||
build_args: VERSION=${{ env.V }}
|
||||
|
||||
registry: docker.pkg.github.com
|
||||
repository: ${{ github.REPOSITORY }}/cloud-game
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue