refac:updated ci/cd pipeline to create docker images with timestamp and commit sha
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m11s
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m11s
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user