diff --git a/.github/workflows/build-demo-service.yml b/.github/workflows/build-demo-service.yml index 6b9f8ae..ced2344 100644 --- a/.github/workflows/build-demo-service.yml +++ b/.github/workflows/build-demo-service.yml @@ -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: | diff --git a/home-apps/demo-service/service.py b/home-apps/demo-service/service.py index b024ed4..78efb07 100644 --- a/home-apps/demo-service/service.py +++ b/home-apps/demo-service/service.py @@ -378,3 +378,4 @@ def index(request: Request):

Redirecting to Admin...

""") +