Skip to content

Commit 5ec5d39

Browse files
committed
fix: bad Helm format on target platform other than AMD64
1 parent 96bde54 commit 5ec5d39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ WORKDIR /workspace
1010
RUN if [ "${TARGETARCH}" = "amd64" ]; then go install github.com/go-delve/delve/cmd/dlv@latest; fi
1111

1212
# Install Helm 3
13-
RUN curl -s https://get.helm.sh/helm-v3.11.1-linux-amd64.tar.gz > helm3.tar.gz \
14-
&& tar -zxvf helm3.tar.gz linux-amd64/helm \
15-
&& chmod +x linux-amd64/helm \
16-
&& mv linux-amd64/helm $PWD/helm \
13+
RUN curl -s https://get.helm.sh/helm-v3.11.1-${TARGETOS}-${TARGETARCH}.tar.gz > helm3.tar.gz \
14+
&& tar -zxvf helm3.tar.gz ${TARGETOS}-${TARGETARCH}/helm \
15+
&& chmod +x ${TARGETOS}-${TARGETARCH}/helm \
16+
&& mv ${TARGETOS}-${TARGETARCH}/helm $PWD/helm \
1717
&& rm helm3.tar.gz \
18-
&& rm -R linux-amd64
18+
&& rm -R ${TARGETOS}-${TARGETARCH}
1919

2020
# Copy the Go Modules manifests
2121
COPY go.mod go.mod

0 commit comments

Comments
 (0)