Browse Source

No deploy stage

pull/5/head
Juto Yu 4 years ago
parent
commit
ec82bcacbe
  1. 37
      pipelines/multi-branch/template.yml

37
pipelines/multi-branch/template.yml

@ -1,14 +1,3 @@
resource_types:
- name: terraform
type: registry-image
source:
repository: ljfranklin/terraform-resource
- name: gcs
type: registry-image
source:
repository: frodenas/gcs-resource
resources: resources:
- name: branch - name: branch
type: git type: git
@ -28,16 +17,6 @@ resources:
json_key: ((gcp_service_account_key)) json_key: ((gcp_service_account_key))
regexp: multi-branch/features/((feature))/my-app-(.+)\.tgz regexp: multi-branch/features/((feature))/my-app-(.+)\.tgz
- name: staging-env
type: terraform
source:
env_name: ((feature))
backend_type: gcs
backend_config:
bucket: concourse-examples
prefix: multi-branch/terraform
credentials: ((gcp_service_account_key))
jobs: jobs:
- name: test - name: test
plan: plan:
@ -63,19 +42,3 @@ jobs:
MODULE: apps/golang MODULE: apps/golang
BINARY_NAME: my-app BINARY_NAME: my-app
input_mapping: {repo: branch} input_mapping: {repo: branch}
- put: build-artifact
params: {file: "binary/my-app-*.tgz"}
- name: deploy
plan:
- in_parallel:
- get: build-artifact
passed: [build]
trigger: true
- get: examples
- load_var: bundle_url
file: build-artifact/url
- put: staging-env
params:
terraform_source: examples/terraform/staging
vars: {bundle_url: ((.:bundle_url))}
Loading…
Cancel
Save