mirror of
https://github.com/harness-community/drone-helm-chart-container-registry.git
synced 2026-06-14 05:12:50 +08:00
migrated to go, add GAR support
This commit is contained in:
@@ -1,18 +1,14 @@
|
||||
FROM --platform=linux/arm64 alpine:3.18 as base
|
||||
FROM --platform=linux/arm64 alpine:latest as base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV HELM_EXPERIMENTAL_OCI=1
|
||||
|
||||
RUN apk --no-cache add ca-certificates curl && \
|
||||
curl -LO "https://get.helm.sh/helm-v3.7.0-linux-arm64.tar.gz" && \
|
||||
tar -zxvf helm-v3.7.0-linux-arm64.tar.gz && \
|
||||
mv linux-arm64/helm /usr/local/bin/helm && \
|
||||
rm -rf linux-arm64 helm-v3.7.0-linux-arm64.tar.gz && \
|
||||
curl -LO "https://get.helm.sh/helm-v3.8.0-linux-amd64.tar.gz" && \
|
||||
tar -zxvf helm-v3.8.0-linux-amd64.tar.gz && \
|
||||
mv linux-amd64/helm /usr/local/bin/helm && \
|
||||
rm -rf linux-amd64 helm-v3.8.0-linux-amd64.tar.gz && \
|
||||
chmod +x /usr/local/bin/helm
|
||||
|
||||
RUN apk add --no-cache python3
|
||||
COPY ./drone-helm /app/
|
||||
|
||||
COPY ./main.py /app/
|
||||
|
||||
CMD ["python", "/app/main.py"]
|
||||
CMD ["/app/drone-helm"]
|
||||
Reference in New Issue
Block a user