mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Publish test image (#1185)
* push image on PR * add docker login in CI * publish image once PR is merged * update order * change condition when publish image * add image publish as a separate github action * remove condition * set go env
This commit is contained in:
parent
4ba2aad493
commit
f15730b3a9
1 changed files with 11 additions and 0 deletions
11
.github/workflows/image.yaml
vendored
11
.github/workflows/image.yaml
vendored
|
@ -7,6 +7,17 @@ jobs:
|
||||||
push-images:
|
push-images:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
||||||
|
|
||||||
- name: login to docker hub
|
- name: login to docker hub
|
||||||
run: echo "${{ secrets.DOCKERIO_PASSWORD }}" | docker login -u "${{ secrets.DOCKERIO_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKERIO_PASSWORD }}" | docker login -u "${{ secrets.DOCKERIO_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue