Skip to content

Commit

Permalink
ci: Fixing condition with secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Apr 11, 2021
1 parent 5c62fcd commit 375d166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s "release"
./scripts/release build
- name: Login to DockerHub
if: secrets.DOCKER_USER != "" && secrets.DOCKER_PASS != ""
if: ${{ secrets.DOCKER_USER }} != '' && ${{ secrets.DOCKER_PASS }} != ''
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Docker
if: secrets.DOCKER_USER != "" && secrets.DOCKER_PASS != ""
if: ${{ secrets.DOCKER_USER }} != '' && ${{ secrets.DOCKER_PASS }} != ''
run: |
DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release docker
Expand Down

0 comments on commit 375d166

Please sign in to comment.