Skip to content

Commit 4b9562b

Browse files
authored
Merge pull request #7759 from upodroid/use-new-registry-for-archeio
use the new registry for archeio
2 parents c706047 + a1e7b7a commit 4b9562b

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

Diff for: dns/octodns-docker/cloudbuild.yaml

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
steps:
2-
- name: gcr.io/cloud-builders/docker
3-
args: ['build', '-t', 'gcr.io/$PROJECT_ID/octodns:$_GIT_TAG',
4-
'--build-arg', 'IMAGE_ARG=gcr.io/$PROJECT_ID/octodns:$_GIT_TAG',
5-
'.']
2+
- name: gcr.io/cloud-builders/docker
3+
args:
4+
[
5+
"build",
6+
"-t",
7+
"us-central1-docker.pkg.dev/k8s-staging-images/infra-tools/octodns:$_GIT_TAG",
8+
"--build-arg",
9+
"IMAGE_ARG=us-central1-docker.pkg.dev/k8s-staging-images/infra-tools/octodns:$_GIT_TAG",
10+
".",
11+
]
612
substitutions:
713
_GIT_TAG: "12345"
8-
_PULL_BASE_REF: 'main'
14+
_PULL_BASE_REF: "main"
915
images:
10-
- "gcr.io/$PROJECT_ID/octodns:$_GIT_TAG"
16+
- "us-central1-docker.pkg.dev/k8s-staging-images/infra-tools/octodns:$_GIT_TAG"
1117
options:
12-
substitution_option: 'ALLOW_LOOSE'
18+
substitution_option: "ALLOW_LOOSE"

Diff for: infra/gcp/terraform/k8s-staging-images/provider.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
*/
1616

1717
terraform {
18-
required_version = "1.6.5"
18+
required_version = "1.10.5"
1919

2020
backend "gcs" {
2121
bucket = "k8s-infra-tf-prow-clusters"

Diff for: infra/gcp/terraform/k8s-staging-images/registries.tf

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ locals {
3131
test-infra = "group:[email protected]"
3232
csi-vsphere = "group:[email protected]"
3333
}
34+
35+
# Only registries used internally by CI should be listed here
36+
registries_excluded_from_cleanup = [
37+
"infra-tools",
38+
"test-infra",
39+
"boskos"
40+
]
3441
}
3542

3643
module "artifact_registry" {
@@ -46,6 +53,7 @@ module "artifact_registry" {
4653
readers = ["allUsers"],
4754
writers = [each.value],
4855
}
56+
cleanup_policy_dry_run = contains(local.registries_excluded_from_cleanup, each.key)
4957
cleanup_policies = {
5058
"delete-images-older-than-90-days" = {
5159
action = "DELETE"

Diff for: infra/gcp/terraform/modules/oci-proxy/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ resource "google_cloud_run_service" "oci-proxy" {
483483
// - We need to be able to deploy registry fixes ASAP
484484
// - We will eventually auto-deploy staging by overriding the project and digest on the production config to avoid skew
485485
// If you're interested in running this image yourself releases are available at registry.k8s.io/infra-tools/archeio
486-
image = "gcr.io/k8s-staging-infra-tools/archeio@${var.digest}"
486+
image = "us-central1-docker.pkg.dev/k8s-staging-images/infra-tools/archeio@${var.digest}"
487487
args = ["-v=${var.verbosity}"]
488488

489489
dynamic "env" {

0 commit comments

Comments
 (0)