mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 10:28:36 +00:00
Hotfix: fix ci pipeline (#904)
This commit is contained in:
parent
d5ea0415de
commit
b6cf90909f
3 changed files with 16 additions and 42 deletions
41
.github/workflows/helm-release.yaml
vendored
41
.github/workflows/helm-release.yaml
vendored
|
@ -5,45 +5,14 @@ on:
|
|||
- "*"
|
||||
paths:
|
||||
- 'charts/kyverno/**'
|
||||
env:
|
||||
HELM_CHART_URL: "https://nirmata.github.io/kyverno/helm-charts/"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v1
|
||||
- uses: J12934/helm-gh-pages-action@master
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl -sSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get
|
||||
chmod 700 get_helm.sh
|
||||
./get_helm.sh
|
||||
helm init --client-only
|
||||
- name: Check Chart Version
|
||||
run: |
|
||||
helm repo add evalsocket ${{ env.HELM_CHART_URL }} || (echo "Kyverno Repository not available")
|
||||
helm search nirmata/kyverno --version `cat charts/kyverno/Chart.yaml | grep '^version: [[:alnum:]]' | awk '{print $2}'` > HELM_CHART_STATUS.txt
|
||||
HELM_CHART_STATUS=`cat HELM_CHART_STATUS.txt`
|
||||
if [ "${HELM_CHART_STATUS}" != 'No results found' ]; then
|
||||
echo 'Version already exist, impossible to continue...'
|
||||
exit 1
|
||||
fi
|
||||
- name: Check sintax
|
||||
run: helm lint charts/kyverno/
|
||||
- name: Create package
|
||||
run: |
|
||||
mkdir -p output/helm-charts/
|
||||
helm package charts/kyverno/ -d output/helm-charts/
|
||||
- name: Reindex repo
|
||||
run: |
|
||||
wget --quiet ${{ env.HELM_CHART_URL }}/index.yaml
|
||||
helm repo index --merge index.yaml --url ${{ env.HELM_CHART_URL }} output/helm-charts/
|
||||
- name: Release
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||
with:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: output
|
||||
access-token: ${{ secrets.ACCESS_TOKEN }}
|
||||
deploy-branch: gh-pages
|
||||
charts-folder: charts
|
15
.github/workflows/release.yaml
vendored
15
.github/workflows/release.yaml
vendored
|
@ -20,11 +20,7 @@ jobs:
|
|||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
- uses: azure/docker-login@v1
|
||||
with:
|
||||
login-server: index.docker.io
|
||||
username: ${{ secrets.DOCKERIO_USERNAME }}
|
||||
password: ${{ secrets.DOCKERIO_PASSWORD }}
|
||||
- uses: creekorful/goreportcard-action@v1.0
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
|
@ -33,5 +29,12 @@ jobs:
|
|||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
- uses: creekorful/goreportcard-action@v1.0
|
||||
- uses: azure/docker-login@v1
|
||||
with:
|
||||
login-server: index.docker.io
|
||||
username: ${{ secrets.DOCKERIO_USERNAME }}
|
||||
password: ${{ secrets.DOCKERIO_PASSWORD }}
|
||||
- run: |
|
||||
docker push nirmata/kyverno
|
||||
docker push nirmata/kyvernopre
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@ scoop:
|
|||
email: kyverno@nirmata.com
|
||||
dockers:
|
||||
- dockerfile: ./cmd/initContainer/Dockerfile
|
||||
skip_push: true
|
||||
binaries:
|
||||
- kyvernopre
|
||||
image_templates:
|
||||
|
@ -94,6 +95,7 @@ dockers:
|
|||
- "nirmata/kyvernopre:{{ .Tag }}"
|
||||
- "nirmata/kyvernopre:latest"
|
||||
- dockerfile: ./cmd/kyverno/Dockerfile
|
||||
skip_push: true
|
||||
binaries:
|
||||
- kyverno
|
||||
image_templates:
|
||||
|
|
Loading…
Add table
Reference in a new issue