Skip to content

Commit 7e0b577

Browse files
committed
push images using PROJECT_ID in cloudbuild
PROJECT_ID is an env var provided by GCP's Cloudbuild automatically. After further investigation, k8s-staging-test-infra does not seem to house any other Kubernetes SIG images. Other SIGs use `gcr.io/$PROJECT_ID` as the repository base for their images. This should work for the COSI controller as well. Signed-off-by: Blaine Gardner <[email protected]>
1 parent 76aa8f3 commit 7e0b577

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: cloudbuild.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ steps:
2121
args: ['buildx']
2222
env:
2323
- BUILDX_PLATFORMS='linux/amd64,linux/arm64'
24-
- IMAGE_TAG='gcr.io/k8s-staging-test-infra/objectstorage-controller:${_GIT_TAG}'
25-
- BUILD_ARGS='--tag "gcr.io/k8s-staging-test-infra/objectstorage-controller:latest"'
24+
- IMAGE_TAG='gcr.io/$PROJECT_ID/objectstorage-controller:${_GIT_TAG}'
25+
- BUILD_ARGS='--tag "gcr.io/$PROJECT_ID/objectstorage-controller:latest"'
2626
images:
27-
- gcr.io/k8s-staging-test-infra/objectstorage-controller:${_GIT_TAG}
28-
- gcr.io/k8s-staging-test-infra/objectstorage-controller:latest
27+
- gcr.io/$PROJECT_ID/objectstorage-controller:${_GIT_TAG}
28+
- gcr.io/$PROJECT_ID/objectstorage-controller:latest

0 commit comments

Comments
 (0)