ci(demo-service): fix sed regex to match both old and new image references

This commit is contained in:
Junv (via Hermes)
2026-06-14 12:02:10 +10:00
parent 425955b921
commit 49703c4c8f
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -55,10 +55,12 @@ jobs:
run: |
IMAGE="${{ steps.tag.outputs.full_image }}"
echo "Updating manifest to: ${IMAGE}"
# Match any demo-manager image reference (works for any current value)
sed -i "s|image: docker.io/library/demo-manager:.*|image: ${IMAGE}|" home-apps/demo-service/k8s-manifest.yaml
sed -i "s|image: ghcr.io/wahyd4/demo-manager:.*|image: ${IMAGE}|" home-apps/demo-service/k8s-manifest.yaml
sed -i "s|imagePullPolicy:.*|imagePullPolicy: Always|" home-apps/demo-service/k8s-manifest.yaml
# Show what changed
git diff home-apps/demo-service/k8s-manifest.yaml
git diff home-apps/demo-service/k8s-manifest.yaml || echo "No diff produced"
- name: Commit & push manifest update
run: |
+1
View File
@@ -378,3 +378,4 @@ def index(request: Request):
<html><head><meta http-equiv="refresh" content="0;url=/admin"></head>
<body><p>Redirecting to <a href="/admin">Admin</a>...</p></body>
</html>""")