1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-02 11:56:03 +02:00

Run terraform validate on both stages

This commit is contained in:
Sven-Hendrik Haase 2020-05-10 02:36:58 +02:00
parent 02112b04b9
commit a6fb4c46ec

View File

@ -1,11 +1,20 @@
image: "archlinux:latest"
before_script:
- pacman -Syu --needed --noconfirm ansible-lint
- pacman -Syu --needed --noconfirm ansible-lint terraform terraform-provider-keycloak
ansible-lint:
script:
# Fix weird ansible bug: https://github.com/trailofbits/algo/issues/1637
# This probably happens due to gitlab-runner mounting the git repo into the container
- chmod o-w .
- ansible-lint
- ansible-lint
terraform-validate:
script:
- cd tf-stage1
- terraform init -backend=false
- terraform validate
- cd ../tf-stage2
- terraform init -backend=false
- terraform validate