mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
ci(demo-service): fix sed regex to match both old and new image references
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user