sourcegraph/dev/ci
Will Dollman b7242d280f
Publish images for all commits on release branches (#63985)
In order to run nightly vulnerability scans of Sourcegraph releases, we
need to publish a new set of images whenever the release branch is
pushed to.

Previously, this was implemented in
https://github.com/sourcegraph/sourcegraph/pull/63379 but with RFC 795
the release branch format changed from 5.5.1234 to 5.5.x.

This PR updates the regex to catch this new format.

The end result of this is that whenever Buildkite runs on a branch
matching `\d.\d.x`, it will push images to the
`us.gcr.io/sourcegraph-dev/gitserver` registry with the tag
`$branch-insiders`.

I've also tagged this PR for backport as we want it on the current patch
release branch 5.5.x :)

<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

## Test plan

- Test buildkite run on branch `will-0.0.x` (with modified regex to
match that branch)
https://buildkite.com/sourcegraph/sourcegraph/builds/283608

<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->

## Changelog

<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->
2024-07-22 16:12:56 +01:00
..
gitops bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
helpers chore(bazel): update ownership tags to increase coverage (#63001) 2024-05-31 14:10:29 +00:00
images chore(tooling): bump Go version to 1.22.4 (#63124) 2024-06-06 15:19:03 +00:00
integration/executors chore: Remove client construction from SignUp/In funcs (#62789) 2024-05-21 15:18:58 +02:00
internal finish removing chromatic (#63966) 2024-07-21 18:37:02 -07:00
runtype Publish images for all commits on release branches (#63985) 2024-07-22 16:12:56 +01:00
scripts bazel: Cleanup oci_deps.bzl (#62769) 2024-05-28 10:00:31 +01:00
trivy fix: update links for dev docs (#62758) 2024-05-17 13:47:34 +02:00
annotate-cloud-ephemeral.sh sg+ci: cloud ephemeral annotation (#62489) 2024-05-07 17:57:54 +02:00
asdf-install.sh app: add step for intel mac builds (#52540) 2023-05-29 20:21:06 +02:00
bazel-build-sg.sh ci: call Aspect Agent Health check before doing rc gen (#61216) 2024-03-18 15:24:27 +02:00
bazel-configure.sh Reapply "ci: use aspect workflow agents (#60317)" (#60856)" (#60860) 2024-03-06 11:37:49 +02:00
bazel-gomodtidy.sh ci: call Aspect Agent Health check before doing rc gen (#61216) 2024-03-18 15:24:27 +02:00
bazel-prechecks-apply.sh aspect: use different dep step key if running as part of aspect (#58676) 2023-11-30 16:48:14 +02:00
bazel-prechecks.sh fix: update links for dev docs (#62758) 2024-05-17 13:47:34 +02:00
bazel.sh ci: call Aspect Agent Health check before doing rc gen (#61216) 2024-03-18 15:24:27 +02:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
CODENOTIFY enterprise: Move last directory out (#57392) 2023-10-05 20:15:40 +00:00
create-client-artifact.sh web: make web integration tests great again! (#25027) 2021-09-23 16:32:25 +02:00
docker-publish.sh ci: drop gcloud init from ci steps (#26492) 2021-10-27 17:02:29 +02:00
gen-metadata-annotation.sh fix: update links for dev docs (#62758) 2024-05-17 13:47:34 +02:00
gen-pipeline.go fix: update links for dev docs (#62758) 2024-05-17 13:47:34 +02:00
gen-pipeline.sh ci: call Aspect Agent Health check before doing rc gen (#61216) 2024-03-18 15:24:27 +02:00
glossary.md chore(ci): remove Percy visual tests (#63515) 2024-06-27 16:20:06 +02:00
msp_deploy.sh msp/deploy: encode commit_message as base64 (#63165) 2024-06-07 23:31:42 +01:00
OWNERS chore: links/ownership devx->dev-infra (#58999) 2023-12-14 15:07:20 +00:00
parallel_run.sh add shellcheck & shfmt to pre-commit's pre-push hook (#59485) 2024-01-11 14:16:22 +00:00
pnpm-build.sh use esbuild for client/web builds (#57365) 2023-10-23 10:59:06 -07:00
pnpm-install-with-retry.sh app: buildkite pipeline for releases (#52202) 2023-05-19 17:44:20 +00:00
pnpm-run.sh remove gulp (task runner) (#57963) 2023-10-29 12:09:50 -07:00
pnpm-web-integration.sh chore(ci): remove Percy visual tests (#63515) 2024-06-27 16:20:06 +02:00
push_all.sh Publish images for all commits on release branches (#63985) 2024-07-22 16:12:56 +01:00
README.md fix: update links for dev docs (#62758) 2024-05-17 13:47:34 +02:00
reset-test-db.sh dev/ci: remove set -x in all tests (#36577) 2022-06-03 13:52:48 -07:00
semgrep-scan.sh ci: set tag refspec for semgrep when working with tags (#61494) 2024-03-29 12:35:39 +00:00

Buildkite Pipeline for sourcegraph/sourcegraph

We dynamically generate our CI pipeline for Buildkite based on the output of gen-pipeline.go. To learn more, refer to the continuous integration docs.