Skip to content

Commit b71916e

Browse files
authored
Switch to Artifact Registry (canada-ca#5119)
* Switch to artifact registry * Wait for up to 3 min for cosmos emulator
1 parent 2e8a1ce commit b71916e

File tree

73 files changed

+98
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+98
-98
lines changed

api/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ steps:
8282
args:
8383
- '-c'
8484
- |
85-
echo "gcr.io/$PROJECT_ID/api-js:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
85+
echo "northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/tracker/api-js:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
8686
8787
- name: 'gcr.io/cloud-builders/docker'
8888
id: build-if-master

azure-defender-easm/add-domain-to-easm/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
args:
77
- "-c"
88
- |
9-
echo "gcr.io/$PROJECT_ID/azure-defender-easm/add-domain-to-easm:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
9+
echo "northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/tracker/azure-defender-easm/add-domain-to-easm:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
1010
1111
- name: "gcr.io/cloud-builders/docker"
1212
id: build-https-if-master

azure-defender-easm/label-known-easm-assets/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
args:
77
- "-c"
88
- |
9-
echo "gcr.io/$PROJECT_ID/azure-defender-easm/label-known-easm-assets:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
9+
echo "northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/tracker/azure-defender-easm/label-known-easm-assets:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
1010
1111
- name: "gcr.io/cloud-builders/docker"
1212
id: build-https-if-master

ci/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ You can see it in the cloudbuild.yaml files under the name "track-compliance/ci"
66
To build a copy of this image:
77

88
```sh
9-
docker build -t gcr.io/track-compliance/ci .
9+
docker build -t northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci .
1010
```
1111
To push to the registry you will need to configure docker with proper credentials.
1212

1313
```sh
1414
gcloud auth configure-docker
15-
docker push gcr.io/track-compliance/ci
15+
docker push northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci
1616
```

ci/cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
- |
1010
if [[ "$BRANCH_NAME" == "master" ]]
1111
then
12-
docker build -t gcr.io/track-compliance/ci .
12+
docker build -t northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci .
1313
else
1414
exit 0
1515
fi
@@ -23,7 +23,7 @@ steps:
2323
- |
2424
if [[ "$BRANCH_NAME" == "master" ]]
2525
then
26-
docker push gcr.io/track-compliance/ci
26+
docker push northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci
2727
else
2828
exit 0
2929
fi

clients/python/cloudbuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
steps:
2-
- name: 'gcr.io/track-compliance/ci'
2+
- name: 'northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci'
33
id: install-client-deps
44
dir: clients/python
55
entrypoint: pipenv
66
args: ['sync', '-d', '--bare']
77
env:
88
- PIPENV_NOSPIN=TRUE
99

10-
- name: 'gcr.io/track-compliance/ci'
10+
- name: 'northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci'
1111
id: lint-client
1212
dir: clients/python
1313
entrypoint: /bin/sh
1414
args: ['-c', 'pipenv run black --check tracker_client/ && pipenv run bandit -r tracker_client/']
1515

16-
- name: 'gcr.io/track-compliance/ci'
16+
- name: 'northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/ci'
1717
id: test-client
1818
dir: clients/python
1919
entrypoint: pipenv
@@ -26,4 +26,4 @@ steps:
2626
timeout: 1200s
2727
options:
2828
machineType: 'E2_HIGHCPU_8'
29-
29+

frontend-maintenance/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
args:
77
- '-c'
88
- |
9-
echo "gcr.io/$PROJECT_ID/frontend-maintenance:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
9+
echo "northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/tracker/frontend-maintenance:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
1010
1111
- name: 'gcr.io/cloud-builders/docker'
1212
id: build-if-master

frontend/cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ steps:
4242
args:
4343
- '-c'
4444
- |
45-
echo "gcr.io/$PROJECT_ID/frontend:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
45+
echo "northamerica-northeast1-docker.pkg.dev/$PROJECT_ID/tracker/frontend:$BRANCH_NAME-$SHORT_SHA-$(date +%s)" > /workspace/imagename
4646
4747
- name: 'gcr.io/cloud-builders/docker'
4848
id: build-if-master

k8s/apps/bases/api/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
app: tracker-api
2424
spec:
2525
initContainers:
26-
- image: gcr.io/track-compliance/database-migration:test-0000003
26+
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/database-migration:test-0000003
2727
name: database-migration
2828
env:
2929
- name: DB_USER
@@ -54,7 +54,7 @@ spec:
5454
- name: database-config
5555
mountPath: /app
5656
containers:
57-
- image: gcr.io/track-compliance/api-js:master-168ac58-1706037325 # {"$imagepolicy": "flux-system:api"}
57+
- image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/api-js:master-168ac58-1706037325 # {"$imagepolicy": "flux-system:api"}
5858
name: api
5959
ports:
6060
- containerPort: 4000

k8s/apps/bases/api/domain-cleanup-cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
spec:
1414
containers:
1515
- name: domain-cleanup
16-
image: gcr.io/track-compliance/services/domain-cleanup:master-a528fe0-1701118115 # {"$imagepolicy": "flux-system:domain-cleanup"}
16+
image: northamerica-northeast1-docker.pkg.dev/track-compliance/tracker/services/domain-cleanup:master-a528fe0-1701118115 # {"$imagepolicy": "flux-system:domain-cleanup"}
1717
env:
1818
- name: DB_PASS
1919
valueFrom:

0 commit comments

Comments
 (0)