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:
parent
02112b04b9
commit
a6fb4c46ec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue