Skip to content

Commit

Permalink
correctly set GITLAB_TOKEN var
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall007 committed May 24, 2024
1 parent 603f88d commit 6f33a97
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
variables:
- name: GITLAB_TOKEN
default: glpat-NO_DEFAULT_VALUE

tasks:
- name: health-check
actions:
Expand Down Expand Up @@ -96,14 +100,12 @@ tasks:
./uds zarf package create --confirm
dir: tests/data
- task: create-doug-pat
setVariables:
- name: GITLAB_TOKEN
- cmd: |
./uds zarf package mirror-resources \
zarf-package-gitlab-git-tests-${UDS_ARCH}-0.0.1.tar.zst \
--git-url "https://gitlab.uds.dev" \
--git-push-username "doug" \
--git-push-password "$GITLAB_TOKEN" \
--git-push-password "${GITLAB_TOKEN}" \
--confirm
dir: tests/data
Expand Down Expand Up @@ -140,6 +142,8 @@ tasks:
token.save!; \
puts token.token; \
'
setVariables:
- name: GITLAB_TOKEN
- name: root-password
actions:
Expand Down

0 comments on commit 6f33a97

Please sign in to comment.