-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathci.gocd.yml
More file actions
108 lines (108 loc) · 3.44 KB
/
ci.gocd.yml
File metadata and controls
108 lines (108 loc) · 3.44 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
format_version: 10
environments:
internal:
pipelines:
- gocd-trial-launcher
- gocd-trial-installers
- gocd-trial-installers-stable
pipelines:
gocd-trial-launcher:
group: go-cd
display_order: 49
materials:
github:
git: https://git.gocd.io/git/gocd/gocd-trial-launcher
environment_variables:
RELEASE: 1.0.0
timer:
spec: 0 30 22 ? * FRI
only_on_changes: false
stages:
- build:
elastic_profile_id: ecs-gocd-dev-build
tasks:
- script: |
set -eux
./build.sh --verbose --prod
echo "Collating binaries..."
sha256sum dist/darwin/arm64/run-gocd
sha256sum dist/linux/amd64/run-gocd
sha256sum dist/windows/amd64/run-gocd.exe
zip -r launchers.zip dist
artifacts:
- build:
source: launchers.zip
gocd-trial-installers:
group: go-cd
display_order: 50
materials:
github:
git: https://git.gocd.io/git/gocd/gocd-trial-launcher
launcher:
pipeline: gocd-trial-launcher
stage: build
regression: # Only build new installers every time main regression tests pass
pipeline: regression-SPAs
stage: Firefox
environment_variables:
GOCD_UPLOAD_S3_BUCKET: downloadgocdio-downloadgocdios3-192sau789jtkh
stages:
- package:
elastic_profile_id: ecs-gocd-dev-build
tasks:
- fetch:
pipeline: installers/smoke/regression-SPAs
stage: dist
job: dist
source: dist/zip/
destination: deps/
- fetch:
pipeline: gocd-trial-launcher
stage: build
job: build
source: launchers.zip
is_file: yes
- script: |
set -eux
unzip -o launchers.zip
cd assembly/config
bundle
bundle exec rake
- script: ./assembly/package.sh osx-aarch64 linux windows
artifacts:
- build:
source: installers/*
destination: installers/
- upload:
elastic_profile_id: ecs-gocd-dev-build-release-aws-privileged
tasks:
- fetch:
stage: package
job: package
source: installers
- script: ruby assembly/upload.rb installers
gocd-trial-installers-stable:
group: go-cd
display_order: 100
materials:
github:
git: https://git.gocd.io/git/gocd/gocd-trial-launcher
trial-installers: # Only release installers for each stable release off the same dependent code
pipeline: gocd-trial-installers
stage: upload
publish-stable: # Only release installers for each stable release off the same dependent code
pipeline: PublishStableRelease
stage: promote-binaries
environment_variables:
GOCD_UPLOAD_S3_BUCKET: downloadgocdio-downloadgocdios3-192sau789jtkh
stages:
- promote-to-stable:
elastic_profile_id: ecs-gocd-dev-build-release-aws-privileged
tasks:
- fetch:
pipeline: gocd-trial-installers
stage: package
job: package
source: installers
- script: ruby assembly/upload.rb --release installers