Simplify if condition in build script
The of condition likely was wrongly inverted (it said it would run if the branch was _not_ master). Also it's kinda useless anyway, as the trigger definitions above (in `on`) already restrict the branches.
This commit is contained in:
parent
54165bb82e
commit
ac988f2a24
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build-images.yml
vendored
4
.github/workflows/build-images.yml
vendored
|
@ -31,13 +31,13 @@ jobs:
|
|||
install: true
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v3
|
||||
if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule'
|
||||
if: github.event_name != 'pull_request' || github.event_name == 'schedule'
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
if: (github.ref != 'refs/heads/master' && github.event_name != 'pull_request') || github.event_name == 'schedule'
|
||||
if: github.event_name != 'pull_request' || github.event_name == 'schedule'
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: privatebin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue