We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b529b4f commit c9cd0a3Copy full SHA for c9cd0a3
2 files changed
.github/workflows/containers-publish.yml
@@ -4,7 +4,7 @@ on:
4
release:
5
types: [published]
6
push:
7
- branches: [develop]
+ branches: [develop, main]
8
9
permissions:
10
packages: write
@@ -29,9 +29,14 @@ jobs:
29
30
if [[ "${{ github.event_name }}" == "release" ]]; then
31
DOCKER_TAG="${GITHUB_REF:11}"
32
+ elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
33
+ TIMESTAMP=$(date +%Y%m%d%H%M%S)
34
+ SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
35
+ DOCKER_TAG="main-${TIMESTAMP}-${SHORT_SHA}"
36
else
37
38
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
- DOCKER_TAG="dev-${SHORT_SHA}"
39
+ DOCKER_TAG="dev-${TIMESTAMP}-${SHORT_SHA}"
40
fi
41
42
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV
.github/workflows/deploy-downstream.yml
0 commit comments