Skip to content
Snippets Groups Projects
.gitlab-ci.yml 597 B
image: "archlinux:latest"

before_script:
  - pacman -Syu --needed --noconfirm ansible-lint yamllint 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