Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
cmd/pings: set up msp_delivery (#62109)
Browse files Browse the repository at this point in the history
Sets up CD to pings rollout pipeline.

## Test plan

Rolled out sourcegraph/managed-services#1274 and did manual setup step:

```
$ gcloud deploy apply --project=pings-prod-2f4f73edf1db --region=us-central1 --file=rollout-us-central1.clouddeploy.yaml
Waiting for the operation on resource projects/pings-prod-2f4f73edf1db/locations/us-central1/targets/prod-us-central1...done.      
Created Cloud Deploy resource: projects/pings-prod-2f4f73edf1db/locations/us-central1/targets/prod-us-central1.
```
  • Loading branch information
bobheadxi authored Apr 23, 2024
1 parent ec5b645 commit 8cdba45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/pings/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//dev:oci_defs.bzl", "image_repository", "oci_image", "oci_push", "oci_tarball")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@container_structure_test//:defs.bzl", "container_structure_test")
load("//dev:msp_delivery.bzl", "msp_delivery")

go_library(
name = "pings_lib",
Expand Down Expand Up @@ -60,3 +61,10 @@ oci_push(
image = ":image",
repository = image_repository("pings"),
)

msp_delivery(
name = "msp_deploy",
gcp_project = "pings-prod-2f4f73edf1db",
msp_service_id = "pings",
repository = "index.docker.io/sourcegraph/pings",
)

0 comments on commit 8cdba45

Please sign in to comment.