Fix build action

This commit is contained in:
Xiaonan Shen
2022-05-29 17:11:24 +08:00
parent 199df4b925
commit 201bf1ed17

View File

@@ -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 }}