fix: use GITOPS_REPO_URL secret for git clone
This commit is contained in:
parent
515882bd2b
commit
4cbab9cb0e
1 changed files with 4 additions and 1 deletions
|
|
@ -26,11 +26,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 nxtgauge-admin-solid"
|
||||
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
|
||||
ADMIN_OVERLAY="apps/nxtgauge-admin-solid/overlays/prod"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue