Also log into DockerHub for release event (#326)

* so far, only push events would trigger the DockerHub login step
* hence, attempts to release would fail because of a permission problem (tested locally)
* adding OR condition to also login in case a release got published
This commit is contained in:
Johannes Nicolai
2021-02-18 00:54:44 +01:00
committed by GitHub
parent 0fce761686
commit 7f4a76a39b

View File

@@ -50,7 +50,7 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v1
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}