migrated to go, add GAR support

This commit is contained in:
Akshit Agrawal
2024-01-12 11:56:42 +05:30
parent 8638190887
commit 5f413c0071
8 changed files with 158 additions and 215 deletions
+7 -11
View File
@@ -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"]