Skip to content

Commit 9736bb2

Browse files
Chart: Push to OCI registry. (#13695)
Co-authored-by: Marco Ebert <[email protected]>
1 parent 1806fa0 commit 9736bb2

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

charts/Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2025 The Kubernetes Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
NAME ?=
16+
17+
REGISTRY ?= us-central1-docker.pkg.dev/k8s-staging-images/ingress-nginx
18+
REPOSITORY ?= $(REGISTRY)/charts
19+
20+
.PHONY: helm
21+
helm:
22+
command -v helm || go install helm.sh/helm/v3/cmd/helm@latest
23+
24+
.PHONY: package
25+
package: helm
26+
helm package $(NAME)
27+
28+
.PHONY: push
29+
push: package
30+
helm push $(NAME)-*.tgz oci://$(REPOSITORY)

charts/ingress-nginx/cloudbuild.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
options:
2+
# Ignore Prow provided substitutions.
3+
substitution_option: ALLOW_LOOSE
4+
steps:
5+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20250513-9264efb079
6+
dir: charts
7+
env:
8+
- NAME=ingress-nginx
9+
entrypoint: make
10+
args:
11+
- push

0 commit comments

Comments
 (0)