Skip to content

Commit c9cd0a3

Browse files
committed
feat: implement Flux-native image automation and remove redundant deployment workflow
1 parent b529b4f commit c9cd0a3

2 files changed

Lines changed: 7 additions & 130 deletions

File tree

.github/workflows/containers-publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
release:
55
types: [published]
66
push:
7-
branches: [develop]
7+
branches: [develop, main]
88

99
permissions:
1010
packages: write
@@ -29,9 +29,14 @@ jobs:
2929
3030
if [[ "${{ github.event_name }}" == "release" ]]; then
3131
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}"
3236
else
37+
TIMESTAMP=$(date +%Y%m%d%H%M%S)
3338
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
34-
DOCKER_TAG="dev-${SHORT_SHA}"
39+
DOCKER_TAG="dev-${TIMESTAMP}-${SHORT_SHA}"
3540
fi
3641
3742
echo "DOCKER_REPOSITORY=${DOCKER_REPOSITORY}" >> $GITHUB_ENV

.github/workflows/deploy-downstream.yml

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)