Skip to content

Commit

Permalink
Add script to update images in expander-helm
Browse files Browse the repository at this point in the history
  • Loading branch information
cheftako committed Oct 28, 2024
1 parent 6e95793 commit f6706e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 2 additions & 3 deletions experiments/compositions/expanders/helm-expander/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ FROM golang:1.23.2 as bins
WORKDIR /workspace

# Version string to embed in built binary.
ARG HELM_VERSION=v3.9.0
ARG KUSTOMIZE_VERSION=v4.5.2
ARG HELM_VERSION=v3.16.2

# Install Helm
RUN wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O /tmp/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
Expand All @@ -59,4 +58,4 @@ COPY --from=build-stage /go/src/app/expander .
ENTRYPOINT ["helm"]

# Switch to non-root user
USER 1000
USER 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

NEW_HELM_VERSION="$(curl --silent "https://api.github.com/repos/helm/helm/releases/latest" | jq -r .tag_name)"
sed -i -E "s|^(ARG HELM_VERSION=).*$|\1$NEW_HELM_VERSION|g" Dockerfile

0 comments on commit f6706e8

Please sign in to comment.