Skip to content

Commit

Permalink
chg/rel: default sg (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchabran authored Mar 18, 2024
1 parent 9da2115 commit 9dea0e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
23 changes: 9 additions & 14 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,23 @@ 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 release run internal finalize --workdir=. --config-from-commit
./sg-rfc795 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 @@ -21,12 +21,12 @@ internal:
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
- name: docker(shell):tags
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
- name: "git:branch"
cmd: |
branch="wip_{{version}}"
Expand All @@ -41,12 +41,12 @@ internal:
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
- name: docker(shell):tags
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
- name: "git:branch"
cmd: |
branch="wip_{{version}}"
Expand All @@ -61,12 +61,12 @@ internal:
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
- name: docker(shell):tags
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-internal
sg-rfc ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
- name: "git:branch"
cmd: |
branch="wip_{{version}}"
Expand Down Expand Up @@ -99,12 +99,12 @@ promoteToPublic:
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-public
sg-rfc ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
sg ops update-images --registry ${registry} --kind compose --pin-tag {{tag}} docker-compose/
- name: docker(shell):tags
cmd: |
set -e
registry=us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-public
sg-rfc ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
sg ops update-images --registry ${registry} --kind shell --pin-tag {{tag}} pure-docker/
- name: "git:branch"
cmd: |
branch="promote-release_{{version}}"
Expand Down

0 comments on commit 9dea0e6

Please sign in to comment.