Skip to content

Commit

Permalink
helm3
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodsmileduck committed Apr 12, 2020
1 parent 50de448 commit 25baefc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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'

9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ LABEL maintainer="Serebrennikov Stanislav <goodsmileduck@gmail.com>" \
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} \
Expand Down

0 comments on commit 25baefc

Please sign in to comment.