mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Publish test image (#1183)
* 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
This commit is contained in:
parent
5eb38114b9
commit
e5f408742f
2 changed files with 17 additions and 9 deletions
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
|
@ -43,12 +43,3 @@ jobs:
|
|||
${GITHUB_WORKSPACE}/scripts/verify-deployment.sh -n kyverno kyverno
|
||||
echo ">>> Run Kyverno e2e test"
|
||||
make test-e2e
|
||||
|
||||
- name: login to docker hub
|
||||
if: github.event.pull_request.merged == true
|
||||
run: echo "${{ secrets.DOCKERIO_PASSWORD }}" | docker login -u "${{ secrets.DOCKERIO_USERNAME }}" --password-stdin
|
||||
|
||||
- name: docker images publish
|
||||
if: github.event.pull_request.merged == true
|
||||
run: |
|
||||
make docker-publish-all
|
||||
|
|
17
.github/workflows/image.yaml
vendored
Normal file
17
.github/workflows/image.yaml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
name: build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
jobs:
|
||||
push-images:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: login to docker hub
|
||||
if: github.event.pull_request.merged == true
|
||||
run: echo "${{ secrets.DOCKERIO_PASSWORD }}" | docker login -u "${{ secrets.DOCKERIO_USERNAME }}" --password-stdin
|
||||
|
||||
- name: docker images publish
|
||||
if: github.event.pull_request.merged == true
|
||||
run: |
|
||||
make docker-publish-all
|
Loading…
Add table
Reference in a new issue