From 3e06050771e7c425aaa60f3781de977d40a17d71 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sun, 12 Nov 2023 12:30:35 -0800 Subject: [PATCH] docker-build action: fix syntax error, use `env.` for conditionals (#427) Signed-off-by: James Hillyerd --- .github/workflows/docker-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b06e904..980d399 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -47,14 +47,14 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to DockerHub - if: $REGISTRY_PUSH + if: ${{ env.REGISTRY_PUSH == 'true' }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - if: $REGISTRY_PUSH + if: ${{ env.REGISTRY_PUSH == 'true' }} uses: docker/login-action@v2 with: registry: ghcr.io @@ -66,6 +66,6 @@ jobs: with: context: . platforms: linux/amd64,linux/arm64, linux/arm/v7 - push: $REGISTRY_PUSH + push: ${{ env.REGISTRY_PUSH == 'true' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}