mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
ci(demo-service): move manifest to home-apps/ root for ArgoCD
- ArgoCD 'home-apps' app tracks the home-apps/ directory at root level only - Move k8s-manifest.yaml to home-apps/demo-service.yaml (sibling of other apps) - Keep source code (Dockerfile, service.py, etc.) in home-apps/demo-service/ subdirectory - Update workflow to update the new path - Also fix imagePullSecrets placement (pod-level not container-level)
This commit is contained in:
@@ -56,17 +56,17 @@ jobs:
|
|||||||
IMAGE="${{ steps.tag.outputs.full_image }}"
|
IMAGE="${{ steps.tag.outputs.full_image }}"
|
||||||
echo "Updating manifest to: ${IMAGE}"
|
echo "Updating manifest to: ${IMAGE}"
|
||||||
# Match any demo-manager image reference (works for any current value)
|
# 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: docker.io/library/demo-manager:.*|image: ${IMAGE}|" home-apps/demo-service.yaml
|
||||||
sed -i "s|image: ghcr.io/wahyd4/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.yaml
|
||||||
sed -i "s|imagePullPolicy:.*|imagePullPolicy: Always|" home-apps/demo-service/k8s-manifest.yaml
|
sed -i "s|imagePullPolicy:.*|imagePullPolicy: Always|" home-apps/demo-service.yaml
|
||||||
# Show what changed
|
# Show what changed
|
||||||
git diff home-apps/demo-service/k8s-manifest.yaml || echo "No diff produced"
|
git diff home-apps/demo-service.yaml || echo "No diff produced"
|
||||||
|
|
||||||
- name: Commit & push manifest update
|
- name: Commit & push manifest update
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git add home-apps/demo-service/k8s-manifest.yaml
|
git add home-apps/demo-service.yaml
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "No manifest changes to commit"
|
echo "No manifest changes to commit"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user