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