Update .gitlab-ci.yml file

This commit is contained in:
Chris Cowley 2024-06-27 09:02:29 +00:00
parent d0de69a1c8
commit d652d656ba

View file

@ -23,12 +23,14 @@ stages: # List of stages for jobs, and their order of execution
- deploy - deploy
variables: variables:
- KUBE_CONFIG_PATH: "${HOME}/.kube/config" KUBE_CONFIG_PATH: "${HOME}/.kube/config"
validate-authentik: # This job runs in the build stage, which runs first. validate-authentik: # This job runs in the build stage, which runs first.
stage: validate stage: validate
before_script: before_script:
- - wget https://github.com/opentofu/opentofu/releases/download/v1.7.2/tofu_1.7.2_amd64.apk -O /tmp/tofu_1.7.2_amd64.apk
- cd authentik/ - apk add --allow-untrusted '/tmp/tofu_1.7.2_amd64.apk'
- echo "${KUBECONFIG_BASE64}" | base64 -d > ${KUBE_CONFIG_PATH}
script: script:
- cd authentik/
- tofu validate - tofu validate