1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

install.yaml added in release (#1038)

* install.yaml added in gorelease

* release added

* revert changes

* tested release

* tested release
This commit is contained in:
Yuvraj 2020-08-11 05:46:13 +05:30 committed by GitHub
parent 184afa23db
commit 19c8f6a9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 75 additions and 0 deletions

73
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,73 @@
name: prereleaser
on:
push:
tags:
- '*'
jobs:
releaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- uses: creekorful/goreportcard-action@v1.0
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- name : binary build & kustomize
run: |
make kyverno
make initContainer
- name: Get latest release version number
id: get_version
uses: battila7/get-version-action@v2
-
uses: docker/build-push-action@v1
name: kyverno docker build and publish
with:
username: ${{ secrets.DOCKERIO_USERNAME }}
password: ${{ secrets.DOCKERIO_PASSWORD }}
repository: "nirmata/kyverno"
push: true
path: cmd/kyverno/
dockerfile: cmd/kyverno/Dockerfile
tags: ${{ steps.get_version.outputs.version }}
-
uses: docker/build-push-action@v1
name: kyvernopre docker build and publish
with:
username: ${{ secrets.DOCKERIO_USERNAME }}
password: ${{ secrets.DOCKERIO_PASSWORD }}
repository: "nirmata/kyvernopre"
push: true
path: cmd/initContainer/
dockerfile: cmd/initContainer/Dockerfile
tags: ${{ steps.get_version.outputs.version }}
- uses: J12934/helm-gh-pages-action@master
name: Run Helm Publish
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
charts-folder: charts
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.38

View file

@ -97,6 +97,8 @@ ci: docker-build-kyverno docker-build-initContainer
echo "kustomize input"
chmod a+x $(PWD)/scripts/ci.sh
$(PWD)/scripts/ci.sh
##################################
##################################