mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-27 12:11:08 +02:00
23 lines
581 B
YAML
23 lines
581 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
|