Skip to content

Commit 9db59ef

Browse files
authored
release manifest: update manifest to handle new process and branches (#435)
* update release manifest * update pipeline to handle branches from release manifest * add qa to branch & tag for qa test * fixup * add .tool-versions with github cli * add buildkite hooks to install tools * also update versions in subchart * remove debugging
1 parent e71e717 commit 9db59ef

File tree

4 files changed

+219
-99
lines changed

4 files changed

+219
-99
lines changed

.buildkite/hooks/pre-command

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
pushd "$(dirname "${BASH_SOURCE[0]}")"/../..
5+
6+
WORKDIR=$(pwd)
7+
8+
echo "Installing asdf dependencies as defined in '${WORKDIR}/.tool-versions':"
9+
asdf install

.buildkite/pipeline.yaml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,39 +26,47 @@ steps:
2626
- "[[ -z $(git status -s) ]]"
2727
agents: { queue: standard }
2828

29-
- label: "Release: test"
30-
if: "build.branch =~ /^wip_/"
29+
- label: "(internal) Release: test"
30+
if: build.branch =~ /^internal\/release-.*/
3131
plugins:
3232
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
3333
command: |
3434
wget https://github.com/comby-tools/comby/releases/download/1.8.1/comby-1.8.1-x86_64-linux
3535
chmod +x ./comby-1.8.1-x86_64-linux
36-
mv comby-1.8.1-x86_64-linux comby
36+
mv comby-1.8.1-x86_64-linux /usr/local/bin/comby
37+
38+
sg release run test --workdir=. --config-from-commit
39+
40+
- label: "(promote) Release: test"
41+
if: build.branch =~ /^promote\/release-.*/
42+
plugins:
43+
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
44+
command: |
45+
wget https://github.com/comby-tools/comby/releases/download/1.8.1/comby-1.8.1-x86_64-linux
46+
chmod +x ./comby-1.8.1-x86_64-linux
47+
mv comby-1.8.1-x86_64-linux /usr/local/bin/comby
3748
38-
export PATH=$PATH:$(pwd)
3949
sg release run test --workdir=. --config-from-commit
4050
4151
- wait
4252

43-
- label: "Release: finalize"
44-
if: "build.branch =~ /^wip_/"
53+
- label: "(internal) Release: finalize"
54+
if: build.branch =~ /^internal\/release-.*/
4555
plugins:
4656
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
4757
command: |
4858
wget https://github.com/comby-tools/comby/releases/download/1.8.1/comby-1.8.1-x86_64-linux
4959
chmod +x ./comby-1.8.1-x86_64-linux
50-
mv comby-1.8.1-x86_64-linux comby
60+
mv comby-1.8.1-x86_64-linux /usr/local/bin/comby
5161
52-
export PATH=$PATH:$(pwd)
5362
sg release run internal finalize --workdir=. --config-from-commit
54-
- label: "Promote to public: finalize"
55-
if: build.message =~ /^promote_release/ && build.branch =~ /^wip-release/
63+
- label: "(promote) Release: finalize"
64+
if: build.branch =~ /^promote\/release-.*/
5665
plugins:
5766
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
5867
command: |
5968
wget https://github.com/comby-tools/comby/releases/download/1.8.1/comby-1.8.1-x86_64-linux
6069
chmod +x ./comby-1.8.1-x86_64-linux
61-
mv comby-1.8.1-x86_64-linux comby
70+
mv comby-1.8.1-x86_64-linux /usr/local/bin/comby
6271
63-
export PATH=$PATH:$(pwd)
6472
sg release run promote-to-public finalize --workdir=. --config-from-commit

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github-cli 2.46.0

0 commit comments

Comments
 (0)