Add GitLab CI config

This commit is contained in:
Jake Howard 2021-07-11 17:02:36 +01:00
parent 3daf3ef8ed
commit 2901afe4c0
Signed by: jake
GPG key ID: 57AFB45680EDD477

18
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,18 @@
terraform:
image: hashicorp/terraform:latest
before_script:
- ./scripts/terraform/terraform.sh init -backend=false
script:
- ./scripts/terraform/lint.sh
ansible:
image: python:3.9-alpine
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
before_script:
- ./scripts/ansible/setup.sh
script:
- ./scripts/ansible/lint.sh