Skip to content

Commit

Permalink
Fix ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Sep 29, 2022
1 parent 1fcfcca commit 9c88dae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,22 @@ jobs:
docker run --rm ${{ env.CONTAINER_IMAGE_ID }} --version
- name: Login to Docker Hub
if: ${{ github.repository == 'ferrarimarco/docker-pxe' && github.ref == 'refs/heads/master' }}
if: |
github.repository == 'ferrarimarco/docker-pxe'
&& (github.ref == 'refs/heads/master' ||
(github.event_name == 'release' && github.event.action == 'published')
)
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
if: ${{ github.repository == 'ferrarimarco/docker-pxe' && github.ref == 'refs/heads/master' }}
if: |
github.repository == 'ferrarimarco/docker-pxe'
&& (github.ref == 'refs/heads/master' ||
(github.event_name == 'release' && github.event.action == 'published')
)
uses: docker/[email protected]
with:
registry: ghcr.io
Expand Down

0 comments on commit 9c88dae

Please sign in to comment.