Merge pull request #260 from lnis-uofu/gg_ci_cd_dev

[CI/CD] Skipped container login if branch is not master
This commit is contained in:
tangxifan 2021-03-02 08:46:49 -07:00 committed by GitHub
commit e6d1ac4a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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