From 25baefca89836ad756dd3475330d887bf679043a Mon Sep 17 00:00:00 2001 From: Serebrennikov Stanislav Date: Mon, 13 Apr 2020 00:16:13 +0800 Subject: [PATCH] helm3 --- .github/workflows/build.yaml | 23 +++++++++++++++++++++++ Dockerfile | 9 ++++----- 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..76eaf22 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,23 @@ +name: 'Test' +on: ['push'] + +jobs: + + test: + runs-on: 'ubuntu-latest' + + steps: + - uses: 'actions/checkout@v1' + + - name: 'Build' + run: 'docker build -t helm .' + +# - name: 'Test commands' +# run: 'docker run --rm -i -v $PWD:/workspace --workdir=/workspace --entrypoint=/workspace/tests/test-snap.sh helm' + +# - name: 'Test chart' +# run: 'docker run --rm -i -v $PWD:/workspace --workdir=/workspace --entrypoint=/workspace/tests/charts/test.sh helm' + + - name: 'Test helm version' + run: 'docker run --rm -i --entrypoint=helm helm version -c' + diff --git a/Dockerfile b/Dockerfile index 6f65b66..3ab26b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,16 +4,15 @@ LABEL maintainer="Serebrennikov Stanislav " \ org.label-schema.name="helm chart push" \ org.label-schema.vendor="Serebrennikov Stanislav" \ org.label-schema.schema-version="1.0" -ENV HELM_VERSION v3.2.1 +ENV HELM_VERSION v3.1.2 ENV HELM_PLUGIN_PUSH_VERSION v0.7.1 ENV HELM_HOME=/root/.helm -RUN apk add curl tar bash +RUN apk add curl tar bash --no-cache RUN set -ex \ - && curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-arm64.tar.gz | tar xz \ + && curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar xz \ && mv linux-amd64/helm /usr/local/bin/helm \ - && rm -rf linux-amd64 \ - && helm init --client-only + && rm -rf linux-amd64 RUN apk add --virtual .helm-build-deps git make \ && helm plugin install https://github.com/chartmuseum/helm-push.git --version ${HELM_PLUGIN_PUSH_VERSION} \