[CI/CD] Skipped container login if branch is not master

This commit is contained in:
Ganesh Gore 2021-03-01 17:47:02 -07:00
parent 808df8a87e
commit 4eef4bd3d1
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/master' || needs.change_detect.outputs.force_upload }}
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io