diff options
author | liushuyu <liushuyu011@gmail.com> | 2022-04-16 21:39:30 -0600 |
---|---|---|
committer | liushuyu <liushuyu011@gmail.com> | 2022-04-18 03:41:07 -0600 |
commit | 82c045ecfeaa4d8bb97fef521c3c86c7ba169b51 (patch) | |
tree | 228214eb96ca916b7ea481aa3b786967cf9a6833 | |
parent | 27ad3813dccc50c9026a99b8e7c1d675c78f72e2 (diff) | |
download | gcc-82c045ecfeaa4d8bb97fef521c3c86c7ba169b51.zip gcc-82c045ecfeaa4d8bb97fef521c3c86c7ba169b51.tar.gz gcc-82c045ecfeaa4d8bb97fef521c3c86c7ba169b51.tar.bz2 |
CI: do not push Docker image ...
... when the workflow is ran in a forked repository
Signed-off-by: Zixing Liu <liushuyu011@gmail.com>
-rw-r--r-- | .github/workflows/docker.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 24ed1b7..f332116 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,6 +21,7 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v1 + if: github.repository == 'Rust-GCC/gccrs' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -29,5 +30,5 @@ jobs: uses: docker/build-push-action@v2 with: context: . - push: true + push: ${{ github.repository == 'Rust-GCC/gccrs' }} tags: philberty/gccrs:latest |