Skip to content

Commit

Permalink
disable steps that don't work on a fork on PRs (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide authored Nov 22, 2023
1 parent ccbaa29 commit 0b787d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
- name: What
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Docker Login LCAS
# don't attempt to login for PRs
if: ${{ github.event_name != 'pull_request' }}
# You may pin to the exact commit or the version.
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v2
Expand All @@ -56,6 +58,8 @@ jobs:
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.LCAS_REGISTRY_TOKEN }}
- name: Docker Login dockerhub
# don't attempt to login for PRs
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
# Username used to log against the Docker registry
Expand Down

0 comments on commit 0b787d1

Please sign in to comment.