Skip to content

Commit

Permalink
switch GCR -> Artifact-Registry
Browse files Browse the repository at this point in the history
GCR has been deprecated [0] in favour of Artifact-Registry.

Thus, change push-targets for OCI-Images:

- europe-docker.pkg.dev/gardener-project/snapshots for snapshots
- europe-docker.pkg.dev/gardener-project/releases for releases
- europe-docker.pkg.dev/gardener-project/public for read-access to
  snapshots + releases

[0]
https://cloud.google.com/artifact-registry/docs/transition/transition-from-gcr
  • Loading branch information
ccwienk committed Dec 12, 2023
1 parent 918443d commit a0a31e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .ci/pipeline_definitions
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ hvpa-controller:
preprocess:
'inject-commit-hash'
inject_effective_version: true
component_descriptor: ~
component_descriptor:
ocm_repository: europe-docker.pkg.dev/gardener-project/snapshots
publish:
oci-builder: docker-buildx
platforms:
- linux/amd64
- linux/arm64
dockerimages:
hvpa-controller:
image: 'eu.gcr.io/gardener-project/gardener/hvpa-controller'
image: europe-docker.pkg.dev/gardener-project/snapshots/gardener/hvpa-controller
dockerfile: 'Dockerfile'
inputs:
repos:
Expand All @@ -27,7 +28,9 @@ hvpa-controller:
jobs:
head-update:
traits:
component_descriptor: ~
component_descriptor:
ocm_repository_mappings:
- repository: europe-docker.pkg.dev/gardener-project/releases
draft_release: ~
pull-request:
traits:
Expand All @@ -36,6 +39,12 @@ hvpa-controller:
traits:
version:
preprocess: 'finalize'
component_descriptor:
ocm_repository: europe-docker.pkg.dev/gardener-project/releases
publish:
dockerimages:
hvpa-controller:
image: europe-docker.pkg.dev/gardener-project/releases/gardener/hvpa-controller
release:
nextversion: 'bump_minor'
git_tags:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

VERSION := $(shell cat VERSION)
PACKAGES :="$(go list -e ./... | grep -vE '/tmp/|/vendor/')"
REGISTRY := eu.gcr.io/gardener-project/gardener
REGISTRY := europe-docker.pkg.dev/gardener-project/public
REPO_ROOT := $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))")

IMAGE_REPOSITORY := $(REGISTRY)/hvpa-controller
IMAGE_REPOSITORY := $(REGISTRY)/gardener/hvpa-controller
IMAGE_TAG := $(VERSION)

# Image URL to use all building/pushing image targets
Expand Down

0 comments on commit a0a31e9

Please sign in to comment.