From c9bcfb8f413ed63ccb85931c86040074dd662a0a Mon Sep 17 00:00:00 2001 From: Conor McManus Date: Thu, 5 Jan 2023 16:20:37 +0100 Subject: [PATCH] Add envs --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbef41b..175f4d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,6 +35,30 @@ tf-apply: script: - terraform init - terraform apply plan.tfplan + environment: + name: Just Jammin + url: https://ejam.vereto.net + dependencies: + - tf-plan + when: manual + only: + - master + +tf-apply: + stage: tf-apply + image: + name: hashicorp/terraform + entrypoint: [""] + before_script: + - apk add ansible + - ansible-galaxy collection install community.docker + - chmod 600 jamulus.pem + script: + - terraform init + - terraform apply plan.tfplan + environment: + name: Public Jammin + url: https://ejam.vereto.net dependencies: - tf-plan when: manual -- 2.45.3