fix: use GITOPS_REPO_URL secret for git clone

This commit is contained in:
Tracewebstudio Dev 2026-04-14 18:30:50 +02:00
parent 99b8dc929e
commit a2c995992e

View file

@ -54,11 +54,14 @@ steps:
- name: update-gitops
image: alpine/git:latest
environment:
GITOPS_REPO_URL:
from_secret: GITOPS_REPO_URL
commands:
- |
set -e
echo "Updating GitOps for ${SERVICE}"
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git /tmp/gitops
git clone ${GITOPS_REPO_URL} /tmp/gitops
cd /tmp/gitops
git checkout main
BACKEND_OVERLAY="apps/nxtgauge-backend-rust/overlays/prod"