Skip to content

Commit

Permalink
add finalize step for promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
burmudar committed Jan 12, 2024
1 parent 11ba6fb commit 35f3906
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ steps:
chmod +x ./sg-rfc795
./sg-rfc795 release run internal finalize --workdir=. --config-from-commit
- label: "Promote release to public"
if: build.env("RELEASE_PUBLIC") == "true"
- label: "Promote to public: finalize"
if: "build.message =~ /^PRETEND PROMOTE RELEASE WIP/"
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 promote-to-public --workdir=. --inputs=server=v5.3.666 --version=v5.3.666
./sg-rfc795 release run promote-to-public finalize --workdir=. --config-from-commit
9 changes: 8 additions & 1 deletion release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ promoteToPublic:
git checkout origin/wip-release-{{version}}
- name: "sg ops"
cmd: |
# TODO switch to public
sg-rfc795 ops update-images \
--kind k8s \
--registry us-central1-docker.pkg.dev/sourcegraph-ci/rfc795-public \
Expand All @@ -105,3 +104,11 @@ promoteToPublic:
cmd: |
git push origin promote-release_{{version}}
gh pr create -f -t "PRETEND PROMOTE RELEASE WIP: promote-release: build {{version}}" --base wip-release-{{version}}
finalize:
steps:
- name: git:tag
cmd: |
branch="wip-release_{{version}}"
git checkout ${branch}
git tag {{version}}
git push origin ${branch} --tags

0 comments on commit 35f3906

Please sign in to comment.