1
0
Fork 0
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:
shuting 2020-10-09 19:16:28 -07:00 committed by GitHub
parent 5eb38114b9
commit e5f408742f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 9 deletions

View file

@ -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
View 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