mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-06-02 11:56:03 +02:00
bd65b9c5ed
Added --diff to the terraform fmt --check command, because it then will show the offending lines on the pipeline output.
23 lines
588 B
YAML
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
|