fix(docker build): missing docker push tag, now added
Build and Push Docker Image / build-and-push (push) Failing after 5s
Build and Push Docker Image / build-and-push (push) Failing after 5s
This commit is contained in:
@@ -35,8 +35,9 @@ jobs:
|
|||||||
echo "IMAGE_TAG=${IMAGE_BASE}:${TAG_NAME}" >> $GITHUB_OUTPUT
|
echo "IMAGE_TAG=${IMAGE_BASE}:${TAG_NAME}" >> $GITHUB_OUTPUT
|
||||||
echo "PUSH_LATEST=true" >> $GITHUB_OUTPUT
|
echo "PUSH_LATEST=true" >> $GITHUB_OUTPUT
|
||||||
elif [[ "${{ gitea.ref_name }}" == "main" ]]; then
|
elif [[ "${{ gitea.ref_name }}" == "main" ]]; then
|
||||||
# Main branch - use commit SHA and latest
|
# Main branch - use commit SHA (shortened to 7 chars) and latest
|
||||||
echo "IMAGE_TAG=${IMAGE_BASE}:${{ gitea.sha_short }}" >> $GITHUB_OUTPUT
|
SHORT_SHA=$(echo "${{ gitea.sha }}" | cut -c1-7)
|
||||||
|
echo "IMAGE_TAG=${IMAGE_BASE}:${SHORT_SHA}" >> $GITHUB_OUTPUT
|
||||||
echo "PUSH_LATEST=true" >> $GITHUB_OUTPUT
|
echo "PUSH_LATEST=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
# Other branches - use branch name
|
# Other branches - use branch name
|
||||||
|
|||||||
Reference in New Issue
Block a user