-
Notifications
You must be signed in to change notification settings - Fork 34
/
deploy_to_cluster.gocd.yaml
45 lines (45 loc) · 1.27 KB
/
deploy_to_cluster.gocd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
format_version: 3
pipelines:
deploy_to_cluster:
group: sample
label_template: ${COUNT}
lock_behavior: none
display_order: 3
environment_variables:
materials:
upstream:
pipeline: test_application
stage: test_app_image
name: upstream_pipeline
SourceCodeRepo:
git: https://github.com/gocd-demo/node-bulletin-board.git
shallow_clone: false
auto_update: true
branch: master
name: SourceCodeRepo
stages:
- deploy_to_cluster:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
jobs:
deploy:
timeout: 0
elastic_profile_id: demo-app
tasks:
- fetch:
options:
EnvironmentVariablePrefix: ''
SkipImagePulling: 'true'
artifact_id: bulletin-board
pipeline: build_and_publish_image/test_application
stage: build_and_publish_image
job: build_image
artifact_origin: external
run_if: passed
- exec:
arguments:
command: ./app-deployment.sh
run_if: passed