Skip to content

Commit

Permalink
chg/rel: use default sg for release operations (#102)
Browse files Browse the repository at this point in the history
* chg/rel: use default sg instead of custom build
  • Loading branch information
jhchabran authored Mar 15, 2024
1 parent 9949975 commit 67b61a6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
24 changes: 9 additions & 15 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,22 @@ steps:

- label: "Release: test"
if: "build.branch =~ /^wip_/"
plugins:
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
command: |
wget https://storage.googleapis.com/buildkite_public_assets/sg-rfc795.tar.gz
tar zxf sg-rfc795.tar.gz
chmod +x ./sg-rfc795
./sg-rfc795 release run test --workdir=. --config-from-commit
sg release run test --workdir=. --config-from-commit
- wait

- label: "Release: finalize"
if: "build.branch =~ /^wip_/"
plugins:
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
command: |
wget https://storage.googleapis.com/buildkite_public_assets/sg-rfc795.tar.gz
tar zxf sg-rfc795.tar.gz
chmod +x ./sg-rfc795
./sg-rfc795 release run internal finalize --workdir=. --config-from-commit
sg release run internal finalize --workdir=. --config-from-commit
- label: "Promote to public: finalize"
if: build.message =~ /^promote_release/ && build.branch =~ /^wip-release/
plugins:
- ssh://[email protected]/sourcegraph/sg-buildkite-plugin.git#main: ~
command: |
wget https://storage.googleapis.com/buildkite_public_assets/sg-rfc795.tar.gz
tar zxf sg-rfc795.tar.gz
chmod +x ./sg-rfc795
./sg-rfc795 release run promote-to-public finalize --workdir=. --config-from-commit
sg release run promote-to-public finalize --workdir=. --config-from-commit
16 changes: 8 additions & 8 deletions release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal:
patch:
- name: "sg ops (base)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand All @@ -31,7 +31,7 @@ internal:
base/
- name: "sg ops (executors)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand Down Expand Up @@ -60,7 +60,7 @@ internal:
minor:
- name: "sg ops (base)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand All @@ -69,7 +69,7 @@ internal:
base/
- name: "sg ops (executors)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand Down Expand Up @@ -98,7 +98,7 @@ internal:
major:
- name: "sg ops (base)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand All @@ -107,7 +107,7 @@ internal:
base/
- name: "sg ops (executors)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal \
--docker-username=$DOCKER_USERNAME \
Expand Down Expand Up @@ -157,7 +157,7 @@ promoteToPublic:
git checkout origin/wip-release-{{version}}
- name: "sg ops"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-public \
--docker-username=$DOCKER_USERNAME \
Expand All @@ -166,7 +166,7 @@ promoteToPublic:
base/
- name: "sg ops (executors)"
cmd: |
sg-rfc795 ops update-images \
sg ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-public \
--docker-username=$DOCKER_USERNAME \
Expand Down

0 comments on commit 67b61a6

Please sign in to comment.