fix(ci): IMAGE_DEPLOY uses git.sova.local for k3s pulls
This commit is contained in:
@@ -10,6 +10,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: gitea-http.gitea.svc.cluster.local:3000
|
REGISTRY: gitea-http.gitea.svc.cluster.local:3000
|
||||||
IMAGE: gitea-http.gitea.svc.cluster.local:3000/sova/backend
|
IMAGE: gitea-http.gitea.svc.cluster.local:3000/sova/backend
|
||||||
|
IMAGE_DEPLOY: git.sova.local/sova/backend
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -93,7 +94,7 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/yq
|
chmod +x /usr/local/bin/yq
|
||||||
for attempt in $(seq 1 $MAX_RETRIES); do
|
for attempt in $(seq 1 $MAX_RETRIES); do
|
||||||
git pull --rebase "${REPO_URL}" main
|
git pull --rebase "${REPO_URL}" main
|
||||||
yq -i ".image.repository = \"${IMAGE}\"" "apps/backend/values-${ENV}.yaml"
|
yq -i ".image.repository = \"${IMAGE_DEPLOY}\"" "apps/backend/values-${ENV}.yaml"
|
||||||
yq -i ".image.tag = \"${TAG}\"" "apps/backend/values-${ENV}.yaml"
|
yq -i ".image.tag = \"${TAG}\"" "apps/backend/values-${ENV}.yaml"
|
||||||
yq -i ".image.pullPolicy = \"IfNotPresent\"" "apps/backend/values-${ENV}.yaml"
|
yq -i ".image.pullPolicy = \"IfNotPresent\"" "apps/backend/values-${ENV}.yaml"
|
||||||
git add "apps/backend/values-${ENV}.yaml"
|
git add "apps/backend/values-${ENV}.yaml"
|
||||||
|
|||||||
Reference in New Issue
Block a user