Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 986f73c

Browse files
authored
Merge pull request #22 from TechTorque-2025/dev
chore: backport update-manifest yq fix to main
2 parents 6c27fab + 1b36f0b commit 986f73c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/update-manifest.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ jobs:
4545
run: |
4646
cd k8s-config
4747
NEW_IMAGE="ghcr.io/techtorque-2025/${SERVICE_NAME}:${{ steps.info.outputs.branch }}-${{ steps.info.outputs.sha }}"
48-
48+
4949
echo "🔄 Updating ${DEPLOYMENT_FILE} to use image: ${NEW_IMAGE}"
50-
51-
yq eval -i \
52-
'(select(.kind == "Deployment") | .spec.template.spec.containers[0].image) = env(NEW_IMAGE)' \
50+
51+
# Use yq --arg instead of env() so we don't need to export the variable; this is robust on GH runners
52+
yq eval -i --arg new_image "${NEW_IMAGE}" \
53+
'(select(.kind == "Deployment") | .spec.template.spec.containers[0].image) = $new_image' \
5354
k8s/services/${DEPLOYMENT_FILE}
5455
5556
echo "✅ Updated manifest:"

0 commit comments

Comments
 (0)