Skip to content
.gitlab-ci.yml 562 B
Newer Older
nimrod's avatar
nimrod committed
---
nimrod's avatar
nimrod committed
include:
nimrod's avatar
nimrod committed
  - project: shore/ci-stuff
nimrod's avatar
nimrod committed
    file: templates/pre-commit.yml
nimrod's avatar
nimrod committed
  - project: shore/ci-stuff
    file: templates/terraform.yml

default:
  before_script:
    - apt-get update
    - apt-get install -y terraform

AWS Terraform plan:
  extends: .tf_plan
  stage: test
  #rules: &aws_tf_rules
  #  - changes:
  #      - ${TF_ROOT}/
  variables: &aws_tf_vars
    TF_ROOT: Terraform/AWS

AWS Terraform apply:
  extends: .tf_apply
  stage: deploy
  #rules: *aws_tf_rules
  needs:
    - job: AWS Terraform plan
      artifacts: true
  variables: *aws_tf_vars