Skip to content

Commit 967776d

Browse files
authored
chore: set defaults to oci (#476)
1 parent 4838722 commit 967776d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

template/Makefile.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ docker-publish:
8989
# Attest the SBOM to the image\
9090
cosign attest -y --predicate sbom.merged.json --type cyclonedx "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}@$$REPO_DIGEST_OF_IMAGE"
9191

92-
# This assumes "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-amd64 and "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-arm64 are build and pushed
92+
# This assumes "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}-amd64 and "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}-arm64 are built and pushed
9393
docker-manifest-list-build:
9494
docker manifest create "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}" --amend "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-amd64" --amend "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-arm64"
9595
docker manifest create "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}" --amend "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}-amd64" --amend "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}-arm64"
@@ -119,7 +119,7 @@ docker-manifest-list-publish:
119119
docker: docker-build docker-publish
120120

121121
print-docker-tag:
122-
@echo "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}"
122+
@echo "${OCI_REGISTRY_HOSTNAME}/${OCI_REGISTRY_PROJECT_IMAGES}/${OPERATOR_NAME}:${VERSION}"
123123

124124
helm-publish:
125125
# Push to Nexus

template/Tiltfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# If tilt_options.json exists read it and load the default_registry value from it
22
settings = read_json('tilt_options.json', default={})
3-
registry = settings.get('default_registry', 'docker.stackable.tech/sandbox')
3+
registry = settings.get('default_registry', 'oci.stackable.tech/sandbox')
44

5-
# Configure default registry either read from config file above, or with default value of "docker.stackable.tech/sandbox"
5+
# Configure default registry either read from config file above, or with default value of "oci.stackable.tech/sandbox"
66
default_registry(registry)
77

88
meta = read_json('nix/meta.json')
@@ -23,8 +23,8 @@ if os.path.exists('result'):
2323
k8s_yaml('result/crds.yaml')
2424

2525
# We need to set the correct image annotation on the operator Deployment to use e.g.
26-
# docker.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of
27-
# docker.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist)
26+
# oci.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of
27+
# oci.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist)
2828
k8s_kind('Deployment', image_json_path='{.spec.template.metadata.annotations.internal\\.stackable\\.tech/image}')
2929

3030
# Exclude stale CRDs from Helm chart, and apply the rest

template/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
};
4141
}
4242
, meta ? pkgs.lib.importJSON ./nix/meta.json
43-
, dockerName ? "docker.stackable.tech/sandbox/${meta.operator.name}"
43+
, dockerName ? "oci.stackable.tech/sandbox/${meta.operator.name}"
4444
, dockerTag ? null
4545
}:
4646
rec {

0 commit comments

Comments
 (0)