1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-06-02 11:56:03 +02:00
infrastructure/.gitlab-ci.yml
Giancarlo Razzolini bd65b9c5ed
gitlab-ci: Add --diff to terraform fmt command
Added --diff to the terraform fmt --check command, because it then will show the
offending lines on the pipeline output.
2021-01-13 13:43:02 -03:00

23 lines
588 B
YAML

image: "archlinux:latest"
before_script:
- pacman -Syu --needed --noconfirm ansible-lint terraform
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
terraform-validate:
script:
- cd tf-stage1
- terraform init -backend=false
- terraform validate
- terraform fmt --check
- cd ../tf-stage2
- terraform init -backend=false
- terraform validate
- terraform fmt --check --diff