refac:updated ci/cd pipeline to create docker images with timestamp and commit sha
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m11s

This commit is contained in:
2026-09-29 11:05:36 +03:30
parent b93c780fea
commit 0381c8b73c
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
# PR head commit instead so tags map to actual git history. # PR head commit instead so tags map to actual git history.
FULL_SHA="${{ gitea.event.pull_request.head.sha || gitea.sha }}" FULL_SHA="${{ gitea.event.pull_request.head.sha || gitea.sha }}"
SHORT_SHA="${FULL_SHA:0:7}" SHORT_SHA="${FULL_SHA:0:7}"
BUILD_TIME=$(date -u +%Y%m%d-%H%M%S) BUILD_TIME=$(date -u +%Y-%m-%d_%H-%M-%S)
echo "sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT" echo "sha=${SHORT_SHA}" >> "$GITHUB_OUTPUT"
echo "tag=${BUILD_TIME}-${SHORT_SHA}" >> "$GITHUB_OUTPUT" echo "tag=${BUILD_TIME}-${SHORT_SHA}" >> "$GITHUB_OUTPUT"