diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-01-28 12:03:21 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-01-28 12:03:21 +0100 |
commit | bbd0414c3749d6c2d68755c5225fdff165e8de5b (patch) | |
tree | 8175be2c8a4b60ca435c86929cab251a5d5b141b /.github/workflows | |
parent | Fix PORT variable substitution in Dockerfile (diff) | |
download | seven-wonders-bbd0414c3749d6c2d68755c5225fdff165e8de5b.tar.gz seven-wonders-bbd0414c3749d6c2d68755c5225fdff165e8de5b.tar.bz2 seven-wonders-bbd0414c3749d6c2d68755c5225fdff165e8de5b.zip |
Clarify docker image tags (sha and build)
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74c694dc..88f9f05f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ on: env: DOCKERHUB_USER: hildan DOCKER_IMAGE_NAME: seven-wonders-server + DOCKER_IMAGE_TAG_SHA: sha-${{ github.sha }} + DOCKER_IMAGE_TAG_BUILD: build-${{ github.run_id }} HEROKU_APP_NAME: seven-wonders-online jobs: @@ -74,9 +76,11 @@ jobs: push: true tags: | ${{ env.DOCKERHUB_USER }}/${{ env.DOCKER_IMAGE_NAME }}:latest - ${{ env.DOCKERHUB_USER }}/${{ env.DOCKER_IMAGE_NAME }}:${{ github.sha }} + ${{ env.DOCKERHUB_USER }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG_SHA }} + ${{ env.DOCKERHUB_USER }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG_BUILD }} ghcr.io/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE_NAME }}:latest - ghcr.io/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE_NAME }}:${{ github.sha }} + ghcr.io/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG_SHA }} + ghcr.io/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_IMAGE_TAG_BUILD }} registry.heroku.com/${{ env.HEROKU_APP_NAME }}/web - name: Heroku release (deploy Docker image) |