Skip to content

Commit

Permalink
conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 8, 2021
1 parent ee3eb50 commit 078420f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
version: latest
- name: Login to GitHub Container Registry
- if: ${{ env.PUSH_PACKAGES }}
name: Login to GitHub Container Registry
uses: docker/login-action@v1
if: ${{ env.PUSH_PACKAGES }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub
- if: ${{ env.PUSH_PACKAGES }}
name: Login to Docker Hub
uses: docker/login-action@v1
if: ${{ env.PUSH_PACKAGES }}
with:
Expand Down

0 comments on commit 078420f

Please sign in to comment.