mirror of
https://github.com/kyverno/kyverno.git
synced 2025-01-20 18:52:16 +00:00
d51807aac2
* docs update and fixed issue for docker push on release
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: releaser
|
|
|
|
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 }}
|
|
- uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERIO_USERNAME }}
|
|
password: ${{ secrets.DOCKERIO_PASSWORD }}
|
|
repository: nirmata/kyverno
|
|
tag_with_ref: true
|
|
tag_with_sha: true
|
|
- uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERIO_USERNAME }}
|
|
password: ${{ secrets.DOCKERIO_PASSWORD }}
|
|
repository: nirmata/kyvernopre
|
|
tag_with_ref: true
|
|
tag_with_sha: true
|
|
|
|
|