Skip to content

Commit

Permalink
fix: env dot not store variable as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviortheking authored Nov 20, 2024
1 parent 9197acb commit 9a34b10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ env.PUBLISH }}
if: ${{ env.PUBLISH == 'true' }}
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Github Packages
uses: docker/login-action@v3
if: ${{ env.PUBLISH }}
if: ${{ env.PUBLISH == 'true' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -59,7 +59,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ env.PUBLISH }}
push: ${{ env.PUBLISH == 'true' }}
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 9a34b10

Please sign in to comment.