Skip to content
Snippets Groups Projects
Commit 7fd23a57 authored by Nathan Rodet's avatar Nathan Rodet
Browse files

update

parent 3bd5c302
No related branches found
No related tags found
No related merge requests found
Pipeline #79042 failed
......@@ -25,14 +25,10 @@ stages:
- prepare
- build
- plan
- deploy
- provisionning
- configuration
- destroy
sshkey:
stage: prepare
script:
- echo ${TF_VAR_SSH_PUBLIC_KEY}
ansible-hosts-file:
stage: prepare
script:
......@@ -49,7 +45,7 @@ validate:
script:
- gitlab-terraform validate
plan:
tf-plan:
stage: build
script:
- gitlab-terraform plan
......@@ -61,21 +57,21 @@ plan:
reports:
terraform: ${TF_ROOT}/plan.json
apply:
stage: deploy
tf-apply:
stage: provisionning
environment:
name: ${ENVIRONMENT}
script:
- gitlab-terraform apply
dependencies:
- plan
- tf-plan
ansible:
stage: deploy
stage: configuration
script:
- ansible-playbook -i ${ANSIBLE_ROOT}/tasks/update.yaml --private-key ${SSH_KEY_PATH}
- ansible-playbook -i ${ANSIBLE_ROOT}/hosts.yaml ${ANSIBLE_ROOT}/tasks/update.yaml --private-key ${SSH_KEY_PATH}
destroy:
tf-destroy:
stage: destroy
environment:
name: ${ENVIRONMENT}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment