Skip to content

Close #248: extraVolumes not working if either authz or `bootstra… #52

Close #248: extraVolumes not working if either authz or `bootstra…

Close #248: extraVolumes not working if either authz or `bootstra… #52

Workflow file for this run

name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
docker_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: release version
run: echo "VERSION=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
- uses: jaxxstorm/action-install-gh-release@v1
with:
repo: GoogleContainerTools/skaffold
tag: v1.38.0
cache: enable
extension-matching: disable
rename-to: skaffold
chmod: 0755
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: imjasonh/setup-crane@v0.1
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build and publish image, create chart archive
run: |
just VERSION=${{ env.VERSION }} build-release
- name: upload helm artifact
uses: actions/upload-artifact@v2
with:
name: "helm"
path: "opa-kube-mgmt-${{ env.VERSION }}.tgz"
helm_job:
runs-on: ubuntu-latest
needs: docker_job
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: download helm artifact
uses: actions/download-artifact@v2
id: download
with:
name: helm
path: /tmp/helm
- name: update helm index
run: |
helm repo index /tmp/helm --merge ./charts/index.yaml
mv -f /tmp/helm/* ./charts
- name: publish index and chart
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages