You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release.yaml
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,64 @@ promoteToPublic:
332
332
cat << EOF | buildkite-agent annotate --style info
333
333
Promoted release is **publicly available** through a git tag at [\`{{version}}\`](https://github.com/sourcegraph/deploy-sourcegraph-k8s/tree/{{version}}).
334
334
EOF
335
+
336
+
- name: "update main with latest version"
337
+
cmd: |
338
+
set -eu
339
+
branch="promote/release-{{version}}-update-main"
340
+
echo "Checking out origin/main"
341
+
git fetch origin main
342
+
git switch main
343
+
echo "Creating branch origin/${branch}"
344
+
git switch -c "${branch}"
345
+
346
+
- name: "sg ops"
347
+
cmd: |
348
+
set -eu
349
+
sg ops update-images \
350
+
--kind k8s \
351
+
--registry index.docker.io/sourcegraph \
352
+
--docker-username=$DOCKER_USERNAME \
353
+
--docker-password=$DOCKER_PASSWORD \
354
+
--pin-tag {{inputs.server.tag}} \
355
+
base/
356
+
357
+
- name: "sg ops (executors)"
358
+
cmd: |
359
+
set -eu
360
+
sg ops update-images \
361
+
--kind k8s \
362
+
--registry index.docker.io/sourcegraph \
363
+
--docker-username=$DOCKER_USERNAME \
364
+
--docker-password=$DOCKER_PASSWORD \
365
+
--pin-tag {{inputs.server.tag}} \
366
+
components/executors/
367
+
368
+
- name: "git:commit"
369
+
cmd: |
370
+
set -eu
371
+
branch="promote/release-{{version}}-update-main"
372
+
find . -name "*.yaml" | xargs git add
373
+
find . -name "*.yml" | xargs git add
374
+
375
+
# Careful with the quoting for the config, using double quotes will lead
376
+
# to the shell dropping out all quotes from the json, leading to failed
377
+
# parsing.
378
+
git commit -am 'update-main: {{version}}' -m 'update main with latest release'
0 commit comments