Fix GCR login

This commit is contained in:
Xiaonan Shen
2022-05-05 00:41:27 +08:00
parent a983e6e88a
commit c38ac6fbb5

View File

@@ -70,7 +70,7 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }} password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v1
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/dev' }} if: ${{ github.event_name != 'pull_request' && github.ref != 'refs/heads/master' }}
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}