Skip to content

Commit e7679bc

Browse files
committed
setup gocd pipeline
1 parent 5af68a6 commit e7679bc

File tree

1 file changed

+36
-28
lines changed

1 file changed

+36
-28
lines changed

hyperstack.gocd.yaml

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,56 +16,64 @@ pipelines:
1616
auto_update: true
1717
branch: edge
1818
stages:
19-
- execute:
19+
- cleanup1:
20+
fetch_materials: false
21+
keep_artifacts: false
22+
clean_workspace: false
23+
approval:
24+
type: any
25+
allow_only_on_success: false
26+
jobs:
27+
cleanup:
28+
timeout: 0
29+
tasks:
30+
- exec:
31+
arguments:
32+
- compose
33+
- run
34+
- -rm
35+
- --entrypoint
36+
- "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'"
37+
- hyperstack
38+
command: docker
39+
run_if: passed
40+
- execute:
2041
fetch_materials: true
2142
keep_artifacts: false
22-
clean_workspace: true
43+
clean_workspace: false
2344
approval:
2445
type: success
2546
allow_only_on_success: false
2647
jobs:
27-
cleanup:
48+
run:
2849
timeout: 0
2950
tasks:
3051
- exec:
3152
arguments:
3253
- compose
3354
- run
3455
- -rm
35-
- --entrypoint
36-
- "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'"
3756
- hyperstack
3857
command: docker
3958
run_if: passed
40-
setup:
59+
- cleanup:
60+
fetch_materials: false
61+
keep_artifacts: false
62+
clean_workspace: false
63+
approval:
64+
type: any
65+
allow_only_on_success: false
66+
jobs:
67+
cleanup:
4168
timeout: 0
4269
tasks:
4370
- exec:
4471
arguments:
4572
- compose
4673
- run
4774
- -rm
75+
- --entrypoint
76+
- "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'"
4877
- hyperstack
4978
command: docker
50-
run_if: passed
51-
# - cleanup:
52-
# fetch_materials: false
53-
# keep_artifacts: false
54-
# clean_workspace: false
55-
# approval:
56-
# type: any
57-
# allow_only_on_success: false
58-
# jobs:
59-
# cleanup:
60-
# timeout: 0
61-
# tasks:
62-
# - exec:
63-
# arguments:
64-
# - compose
65-
# - run
66-
# - -rm
67-
# - --entrypoint
68-
# - "/bin/bash -c 'chown -R 1000:1001 /root/hyperstack'"
69-
# - hyperstack
70-
# command: docker
71-
# run_if: passed
79+
run_if: passed

0 commit comments

Comments
 (0)