RC: (debug) workflow not pushing to chart
Some checks failed
Build and Update Flux / build-push-update (push) Failing after 43s

This commit is contained in:
Raul Costa
2026-04-02 01:18:16 +01:00
parent ada3e2c1b7
commit 2d644a1ec3

View File

@@ -49,19 +49,28 @@ jobs:
- name: Update Helm values.yaml for Flux - name: Update Helm values.yaml for Flux
run: | run: |
# Go into the downloaded infrastructure repo
cd infra-workspace cd infra-workspace
# 1. Update the image tag in your local Helm chart using sed echo "--- TARGET FILE BEFORE ---"
cat charts/slashroot/values.yaml
# The sed command (Make sure the path matches perfectly!)
sed -i "s/tag: .*/tag: ${{ gitea.sha }}/g" charts/slashroot/values.yaml sed -i "s/tag: .*/tag: ${{ gitea.sha }}/g" charts/slashroot/values.yaml
# 2. Configure the Gitea Bot to commit the change echo "--- TARGET FILE AFTER ---"
cat charts/slashroot/values.yaml
# Set up Git
git config user.name "Gitea Actions Bot" git config user.name "Gitea Actions Bot"
git config user.email "actions@gitea.local" git config user.email "actions@gitea.local"
git add charts/slashroot/values.yaml
# Commit and Push back to the Infra Repo # Check if there are actually changes to commit
git add . if git diff --staged --quiet; then
git commit -m "BOT: (bump) slashroot-cc update: ${{ gitea.sha }}" echo "❌ ERROR: No changes were made! Check if 'tag: ' actually exists in your values.yaml"
exit 1
# Push the changes (The token we provided earlier handles authentication) else
echo "✅ Changes detected! Committing and pushing..."
git commit -m "chore: deploy slashroot-cc update ${{ gitea.sha }} [skip ci]"
git push origin main git push origin main
fi