Skip to content

Commit

Permalink
ci: [skip-ci] Updating condition for running Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Jul 18, 2024
1 parent 01485e0 commit 736bcd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Publish
if: env.DOCKER_USER && env.DOCKER_PASS
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
export GIT_TAG="$(basename ${{ github.ref }})"
scripts/release.sh build assets clean
- name: Docker
if: ${{ env.docker_user != '' }}
if: env.DOCKER_USER && env.DOCKER_PASS
env:
DOCKER_USER: ${{ env.docker_user }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap.sh" | bash -s -- "-c" "docker_promote.sh"
Expand Down

0 comments on commit 736bcd1

Please sign in to comment.