refactor(gitops): establish platform ownership boundaries
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
||||
echo "image_digest must be an immutable sha256 digest" >&2
|
||||
exit 1
|
||||
fi
|
||||
manifest="clusters/dev-k3s/manifests/${SERVICE}/kustomization.yaml"
|
||||
manifest="clusters/dev-k3s/overlays/workloads/${SERVICE}/kustomization.yaml"
|
||||
temporary="$(mktemp "${manifest}.XXXXXX")"
|
||||
awk -v image_name="$image_name" -v image_digest="$IMAGE_DIGEST" '
|
||||
$1 == "-" && $2 == "name:" { target = ($3 == image_name) }
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
git config user.name "gitops-bot"
|
||||
git config user.email "gitops-bot@hyeonworks.local"
|
||||
git switch -c "$branch"
|
||||
git add "clusters/dev-k3s/manifests/${SERVICE}/kustomization.yaml"
|
||||
git add "clusters/dev-k3s/overlays/workloads/${SERVICE}/kustomization.yaml"
|
||||
git commit -m "chore(gitops): promote ${SERVICE} dev digest"
|
||||
git push --set-upstream origin "$branch"
|
||||
echo "PROMOTION_BRANCH=$branch" >>"$GITHUB_ENV"
|
||||
|
||||
Reference in New Issue
Block a user