infrastructure/.gitlab-ci.yml

21 lines
491 B
YAML
Raw Normal View History

2021-07-11 17:02:36 +01:00
terraform:
image: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
2021-07-11 17:02:36 +01:00
before_script:
- apk add --no-cache bash
2021-07-11 17:02:36 +01:00
- ./scripts/terraform/terraform.sh init -backend=false
script:
- ./scripts/terraform/lint.sh
ansible:
image: python:3.9-alpine
2021-07-11 17:02:36 +01:00
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
before_script:
- apk add --no-cache bash
2021-07-11 17:02:36 +01:00
- ./scripts/ansible/setup.sh
script:
- ./scripts/ansible/lint.sh