Publish Helm chart on release

This commit is contained in:
stefanprodan
2020-05-27 16:34:57 +03:00
parent b2ca15b8af
commit 98c2853ec3
3 changed files with 7 additions and 14 deletions

View File

@@ -12,10 +12,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish Helm charts
uses: ./.github/actions/helm-gh-pages
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Restore Go cache
uses: actions/cache@v1
with:
@@ -31,11 +27,6 @@ jobs:
uses: ./.github/actions/helm
- name: Setup Kubernetes
uses: engineerd/setup-kind@v0.4.0
- name: Debug
run: |
which kubectl
ls -la $HOME
ls -la $GITHUB_WORKSPACE
- name: Run unit tests
run: make test
- name: Check if working tree is dirty

View File

@@ -1,16 +1,16 @@
name: build
name: release
on:
push:
tags: '*'
jobs:
multi-arch-build:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: crazy-max/ghaction-docker-buildx@v1
- name: buildx
- name: Publish multi-arch image
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
docker buildx build --platform "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64" \
@@ -19,3 +19,7 @@ jobs:
--tag "docker.io/stefanprodan/podinfo:${GITHUB_REF#refs/tags/}" \
--tag "docker.io/stefanprodan/podinfo:latest" \
--file Dockerfile .
- name: Publish helm chart
uses: ./.github/actions/helm-gh-pages
with:
token: ${{ secrets.GITHUB_TOKEN }}