2021-07-11 17:02:36 +01:00
|
|
|
terraform:
|
2021-07-11 17:47:56 +01:00
|
|
|
image: registry.gitlab.com/gitlab-org/terraform-images/stable:latest
|
2021-07-11 17:02:36 +01:00
|
|
|
before_script:
|
2021-07-11 17:50:46 +01:00
|
|
|
- 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:
|
2021-07-11 17:56:31 +01:00
|
|
|
image: python:3.9-slim
|
2021-07-11 17:02:36 +01:00
|
|
|
variables:
|
|
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/pip
|
|
|
|
before_script:
|
2021-07-11 18:20:13 +01:00
|
|
|
- chmod 0755 ansible/ # HACK: https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir
|
2021-07-11 17:56:31 +01:00
|
|
|
- apt-get update && apt-get install -y bash git
|
2021-07-11 17:02:36 +01:00
|
|
|
- ./scripts/ansible/setup.sh
|
2021-12-20 17:48:14 +00:00
|
|
|
- chmod -x ansible/vault-pass.sh # HACK: Pretend executable _is_ the password
|
2021-07-11 17:02:36 +01:00
|
|
|
script:
|
|
|
|
- ./scripts/ansible/lint.sh
|