fix: use GITOPS_REPO_URL with GHCR auth
This commit is contained in:
parent
e133bd0f2d
commit
37b17b8b77
1 changed files with 3 additions and 1 deletions
|
|
@ -59,11 +59,13 @@ steps:
|
||||||
from_secret: GHCR_TOKEN
|
from_secret: GHCR_TOKEN
|
||||||
GHCR_USERNAME:
|
GHCR_USERNAME:
|
||||||
from_secret: GHCR_USERNAME
|
from_secret: GHCR_USERNAME
|
||||||
|
GITOPS_REPO_URL:
|
||||||
|
from_secret: GITOPS_REPO_URL
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
echo "Updating GitOps for ${SERVICE}"
|
echo "Updating GitOps for ${SERVICE}"
|
||||||
git clone https://${GHCR_USERNAME}:${GHCR_TOKEN}@github.com/Traceworks2023/nxtgauge-gitops.git /tmp/gitops
|
git clone https://${GHCR_USERNAME}:${GHCR_TOKEN}@${GITOPS_REPO_URL} /tmp/gitops
|
||||||
cd /tmp/gitops
|
cd /tmp/gitops
|
||||||
git checkout main
|
git checkout main
|
||||||
BACKEND_OVERLAY="apps/nxtgauge-backend-rust/overlays/prod"
|
BACKEND_OVERLAY="apps/nxtgauge-backend-rust/overlays/prod"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue