From 3e5513d2b44f3e0aab7c07f5564f0650549b9be9 Mon Sep 17 00:00:00 2001 From: Victor Barba Martin Date: Wed, 17 Nov 2021 15:19:27 +0100 Subject: [PATCH] adds terraform to pipeline --- bitbucket-pipelines.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 39f4fc0..41a19b2 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -25,19 +25,27 @@ pipelines: - hadolint docker/coturn-dns/Dockerfile branches: main: - - step: - name: Build images - script: - - docker build . --file docker/coturn/Dockerfile --tag coturn - - docker build . --file docker/coturn-dns/Dockerfile --tag coturn-dns - - docker save coturn --output "coturn.tar" - - docker save coturn-dns --output "coturn-dns.tar" - services: - - docker - caches: - - docker - artifacts: - - "*.tar" + - parallel: + - step: + name: Build images + script: + - docker build . --file docker/coturn/Dockerfile --tag coturn + - docker build . --file docker/coturn-dns/Dockerfile --tag coturn-dns + - docker save coturn --output "coturn.tar" + - docker save coturn-dns --output "coturn-dns.tar" + services: + - docker + caches: + - docker + artifacts: + - "*.tar" + - step: + name: Deploy terraform + image: hashicorp/terraform:full + script: + - cd terraform/ + - terraform init + - terraform plan - step: name: Push images image: google/cloud-sdk:alpine