From 201bf1ed17b35ae7e459c4bf3c9e85d8fcc53532 Mon Sep 17 00:00:00 2001 From: Xiaonan Shen Date: Sun, 29 May 2022 17:11:24 +0800 Subject: [PATCH] Fix build action --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3aa717b..f15e645 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -70,13 +70,13 @@ jobs: sarif_file: ${{ steps.scan.outputs.sarif }} - name: Login to DockerHub uses: docker/login-action@v1 - if: ${{ github.event_name != 'pull_request' && steps.repo.outputs.repo == ${DOCKER_REPO} }} + if: ${{ github.event_name != 'pull_request' && steps.repo.outputs.repo == env.DOCKER_REPO }} with: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - name: Login to GitHub Container Registry uses: docker/login-action@v1 - if: ${{ github.event_name != 'pull_request' && steps.repo.outputs.repo == ${DOCKER_REPO_DEV} }} + if: ${{ github.event_name != 'pull_request' && steps.repo.outputs.repo == env.DOCKER_REPO_DEV }} with: registry: ghcr.io username: ${{ github.repository_owner }}