Pass version when pushing Docker images

This commit is contained in:
Sergey Stepanov 2021-07-16 18:22:52 +03:00
parent 30d104ee98
commit dc151f6a0b
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
2 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
add_git_labels: true
tags: latest,${{ env.TAG }}
build_args: VERSION=$(./scripts/version.sh)
registry: docker.pkg.github.com
repository: ${{ github.REPOSITORY }}/cloud-game
@ -30,7 +31,7 @@ jobs:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'PLACEHOLDER'
- name: Redeploy all instances

View file

@ -21,6 +21,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
add_git_labels: true
tags: dev
build_args: VERSION=$(./scripts/version.sh)
registry: docker.pkg.github.com
repository: ${{ github.REPOSITORY }}/cloud-game