-
Notifications
You must be signed in to change notification settings - Fork 316
/
finish_release.pipeline.yml
104 lines (95 loc) · 2.62 KB
/
finish_release.pipeline.yml
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
expeditor:
accounts:
- aws/chef-cd
defaults:
buildkite:
timeout_in_minutes: 30
env:
HAB_ORIGIN: "core"
PIPELINE_HAB_BLDR_URL: "https://bldr.habitat.sh"
GITHUB_USER: "habitat-sh" # per https://github.com/github/hub/issues/2264#issuecomment-567241335
steps:
- label: ":github: Create GitHub Release"
command:
- .expeditor/scripts/finish_release/create_github_release.sh
# Allow this to fail for now, because we don't have sufficient
# privileges yet. See
# https://github.com/habitat-sh/habitat/issues/8063
soft_fail: true
expeditor:
secrets:
GITHUB_TOKEN:
account: github/habitat-sh
field: token
executor:
docker:
environment:
- GITHUB_USER
- label: ":chocolate_bar: Publish Chocolatey package"
command:
- powershell .expeditor/scripts/finish_release/publish_to_chocolatey.ps1
expeditor:
secrets:
CHOCO_API_KEY:
path: account/static/chocolatey/habitat
field: api_key
executor:
docker:
host_os: windows
environment:
- label: ":rust: Check for new nightly rustfmt version"
command:
- .expeditor/scripts/finish_release/bump_rustfmt.sh
expeditor:
account:
- github
secrets:
GITHUB_TOKEN:
account: github/habitat-sh
field: token
executor:
docker:
environment:
- GITHUB_USER
soft_fail: true
- label: "Sync acceptance packages from prod"
command:
- .expeditor/scripts/finish_release/sync_acceptance.sh
expeditor:
account:
- github
secrets:
HAB_AUTH_TOKEN:
path: account/static/habitat/chef-ci
field: auth_token # Production Builder
PIPELINE_ACCEPTANCE_AUTH_TOKEN:
path: account/static/habitat/chef-ci
field: acceptance_auth_token
soft_fail: true
- label: "Update Habitat API Docs"
command:
- .expeditor/scripts/finish_release/update_api_docs.sh
expeditor:
executor:
docker:
privileged: true
environment:
- BUILD_PKG_TARGET=x86_64-linux
- label: "Publish Release Notes"
command:
- .expeditor/scripts/release_notes/publish-release-notes.sh
expeditor:
account:
- github
secrets:
GITHUB_TOKEN:
account: github/habitat-sh
field: token
executor:
docker:
environment:
- GITHUB_USER
- wait
- label: "Announce Release"
command:
- .expeditor/scripts/release_notes/announce-release.sh