Merge pull request #175 from PrivateBin/rugk-patch-1
Simplify if condition in build script
This commit is contained in:
commit
afe8e8d22d
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' || startsWith(github.ref, 'refs/tags/')) }}
|
||||
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' || startsWith(github.ref, 'refs/tags/')) }}
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: privatebin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue