diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80fa769..1c951c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,12 +23,14 @@ stages: # List of stages for jobs, and their order of execution - deploy 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. stage: validate before_script: - - - - cd authentik/ + - 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 + - apk add --allow-untrusted '/tmp/tofu_1.7.2_amd64.apk' + - echo "${KUBECONFIG_BASE64}" | base64 -d > ${KUBE_CONFIG_PATH} script: + - cd authentik/ - tofu validate \ No newline at end of file