Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfc-795: add release manifest #70

Closed
wants to merge 1 commit into from
Closed
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
68 changes: 68 additions & 0 deletions release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
meta:
productName: "deploy-sourcegraph-k8s"
owners:
- "sourcegraph"
repository: "github.com/sourcegraph/deploy-sourcegraph-k8s"
artifacts:
- "nothing"
requirements:
- name: "GitHub cli exists"
cmd: "which gh"
fixInstructions: "install GitHub cli"
input:
# No internal steps since any release in this repo is public

test:
steps:
- name: "correct amount of new version tags in README"
cmd: |
count=$(git diff --name-only | wc -l)
expected=27
if [[ ${count} -ne ${expected} ]]; then
echo "expected ${expected} new images tags of \"{{tag}}\" in deployment and stateful files but got ${count}"
exit 1
fi

internal:
create:
steps:
minor:
- name: "update base image tags"
cmd: sg ops update-images --registry internal --pin-tag {{tag}} base/
- name: "update executors image tags"
cmd: sg ops update-images --registry internal --pin-tag {{tag}} components/executors/
major:
- name: "update base image tags"
cmd: sg ops update-images --registry internal --pin-tag {{tag}} base/
- name: "update executors image tags"
cmd: sg ops update-images --registry internal --pin-tag {{tag}} components/executors/

finalize:
steps:
- name: "create new branch"
cmd: git switch -c "wb/wip-release-{{tag}}"
- name: "add changes branch"
cmd: "git commit -am 'WB-WIP: Test Release {{tag}}' -m 'This is a Test release'"
- name: "push branch"
cmd: "git push origin wb/wip-release-{{tag}}"
- name: "create release PR"
cmd: gh pr create --draft --fill
# TODO: should we tag here ???
promoteToPublic:
create:
steps:
- name: "update base image tags"
cmd: sg ops update-images --registry public --pin-tag {{tag}} base/
- name: "update executors image tags"
cmd: sg ops update-images --registry public --pin-tag {{tag}} components/executors/
finalize:
- name: "create new branch"
cmd: git switch -c "wb/wip-release-{{tag}}"
- name: "add changes branch"
cmd: "git commit -am 'WB-WIP: Test Release {{tag}}' -m 'This is a Test release'"
- name: "push branch"
cmd: "git push origin wb/wip-release-{{tag}}"
- name: "create release PR"
cmd: gh pr create --draft --fill
# TODO: should we tag here ???
Loading