Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,17 @@ jobs:
git config user.email "$GIT_USER_EMAIL"
git config user.name "$GIT_USER_NAME"
git add .
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "chore(deploy): set $ENV image tag to $VERSION"
if [ "$PUSH_TO_ENV_TAG" = "true" ]; then
echo "Set new image tag to $ENV"
NEW_SHA=$(git rev-parse HEAD)
git tag -fa "$ENV" -m "$ENV deploy $VERSION ($NEW_SHA)" "$NEW_SHA"
git push origin -f "refs/tags/$ENV"
else
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
git push origin main
fi
env:
Expand Down
Loading