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