@@ -543,6 +543,115 @@ promoteToPublic:
543543 Promoted release is **publicly available** through a git tag at [\`{{version}}\`](https://github.com/sourcegraph/deploy-sourcegraph-helm/tree/{{version}}).
544544 EOF
545545
546+ - name : " update main with latest version"
547+ cmd : |
548+ set -eu
549+ branch="promote/release-{{version}}-update-main"
550+ echo "Checking out origin/main"
551+ git fetch origin "${branch}"
552+ echo "Creating branch origin/${branch}"
553+ git switch -c "${branch}"
554+
555+ - name : sg ops:sourcegraph
556+ cmd : |
557+ set -eu
558+ registry=index.docker.io/sourcegraph
559+ sg ops update-images \
560+ -t {{inputs.server.tag}} \
561+ -k helm \
562+ --registry "${registry}" \
563+ --docker-username $DOCKER_USERNAME \
564+ --docker-password $DOCKER_PASSWORD \
565+ charts/sourcegraph/
566+
567+ - name : sg ops:dind
568+ cmd : |
569+ set -eu
570+ registry=index.docker.io/sourcegraph
571+ sg ops update-images \
572+ -t {{inputs.server.tag}} \
573+ -k helm \
574+ --registry "${registry}" \
575+ --docker-username $DOCKER_USERNAME \
576+ --docker-password $DOCKER_PASSWORD \
577+ charts/sourcegraph-executor/dind/
578+
579+ - name : sg ops:k8s
580+ cmd : |
581+ set -eu
582+ registry=index.docker.io/sourcegraph
583+ sg ops update-images \
584+ -t {{inputs.server.tag}} \
585+ -k helm \
586+ --registry "${registry}" \
587+ --docker-username $DOCKER_USERNAME \
588+ --docker-password $DOCKER_PASSWORD \
589+ charts/sourcegraph-executor/k8s/
590+
591+ - name : sg ops:migrator
592+ cmd : |
593+ set -eu
594+ registry=index.docker.io/sourcegraph
595+ sg ops update-images \
596+ -t {{inputs.server.tag}} \
597+ -k helm \
598+ --registry "${registry}" \
599+ --docker-username $DOCKER_USERNAME \
600+ --docker-password $DOCKER_PASSWORD \
601+ charts/sourcegraph-migrator/
602+
603+ - name : sg ops:appliance
604+ cmd : |
605+ set -eu
606+ registry=index.docker.io/sourcegraph
607+ sg ops update-images \
608+ -t {{inputs.server.tag}} \
609+ -k helm \
610+ --registry "${registry}" \
611+ --docker-username $DOCKER_USERNAME \
612+ --docker-password $DOCKER_PASSWORD \
613+ charts/sourcegraph-appliance/
614+
615+ - name : " chart:version"
616+ cmd : |
617+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph/Chart.yaml
618+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph/examples/subchart/Chart.yaml
619+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph-executor/dind/Chart.yaml
620+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph-executor/k8s/Chart.yaml
621+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph-migrator/Chart.yaml
622+ comby -matcher ".generic" -in-place "version: \":[~\d+\.\d+\.\d+]\"" 'version: "{{inputs.server.tag}}"' -f charts/sourcegraph-appliance/Chart.yaml
623+
624+ - name : " chart:appVersion"
625+ cmd : |
626+ comby -matcher ".generic" -in-place "appVersion: \":[~\d+\.\d+\.\d+]\"" 'appVersion: "{{inputs.server.tag}}"' -f charts/sourcegraph/Chart.yaml
627+ comby -matcher ".generic" -in-place "appVersion: \":[~\d+\.\d+\.\d+]\"" 'appVersion: "{{inputs.server.tag}}"' -f charts/sourcegraph-executor/dind/Chart.yaml
628+ comby -matcher ".generic" -in-place "appVersion: \":[~\d+\.\d+\.\d+]\"" 'appVersion: "{{inputs.server.tag}}"' -f charts/sourcegraph-executor/k8s/Chart.yaml
629+ comby -matcher ".generic" -in-place "appVersion: \":[~\d+\.\d+\.\d+]\"" 'appVersion: "{{inputs.server.tag}}"' -f charts/sourcegraph-migrator/Chart.yaml
630+ comby -matcher ".generic" -in-place "appVersion: \":[~\d+\.\d+\.\d+]\"" 'appVersion: "{{inputs.server.tag}}"' -f charts/sourcegraph-appliance/Chart.yaml
631+
632+ - name : " update helm docs"
633+ cmd : ./scripts/helm-docs.sh
634+
635+ - name : " git:commit"
636+ cmd : |
637+ set -eu
638+ branch="promote/release-{{version}}-update-main"
639+
640+ git commit -am "prep update main: {{version}}" -m 'update main with latest release'
641+ git push origin "${branch}"
642+
643+ - name : " github:pr"
644+ cmd : |
645+ set -eu
646+ internal_branch="promote/release-{{version}}-update-main"
647+ gh pr create \
648+ --fill \
649+ --draft \
650+ --base "$internal_branch" \
651+ --title "Update main: build {{version}}" \
652+ --body "Test plan: automated release PR, CI will perform additional checks"
653+ echo "🚢 Please check the associated CI build to ensure the process completed".
654+
546655 - name : ' Promote on release registry'
547656 cmd : |
548657 echo "Promoting deploy-sourcegraph-helm {{version}} release on release registry"
0 commit comments