Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://git@github.com/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://git@github.com/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://git@github.com/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