summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-01-28 12:03:21 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-01-28 12:03:21 +0100
commitbbd0414c3749d6c2d68755c5225fdff165e8de5b (patch)
tree8175be2c8a4b60ca435c86929cab251a5d5b141b /.github/workflows/ci.yml
parentFix PORT variable substitution in Dockerfile (diff)
downloadseven-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/ci.yml')
-rw-r--r--.github/workflows/ci.yml8
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)
bgstack15