-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50de448
commit 25baefc
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,15 @@ LABEL maintainer="Serebrennikov Stanislav <[email protected]>" \ | |
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} \ | ||
|