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

Publish test image (#1182)

* push image on PR

* add docker login in CI

* publish image once PR is merged

* update order

* change condition when publish image
This commit is contained in:
shuting 2020-10-09 19:00:52 -07:00 committed by GitHub
parent 0c7e5aa755
commit 5eb38114b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,10 +45,10 @@ jobs:
make test-e2e
- name: login to docker hub
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
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_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
if: github.event.pull_request.merged == true
run: |
make docker-publish-all