adds terraform to pipeline
This commit is contained in:
parent
894d9f192b
commit
3e5513d2b4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue