Simplify if condition by using startsWith
Should now be equivalent to the previous one.
This commit is contained in:
parent
ac988f2a24
commit
545a6dfd3a
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
|
install: true
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
if: 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:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
if: 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:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: privatebin
|
username: privatebin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue