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