diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-19 09:37:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 09:37:52 +0000 |
commit | 5b14291b54fe72407b840631511d1c3bb07df22e (patch) | |
tree | cc1222462e775332f0cff70f09940fe843d5eb4d | |
parent | 321be1b3c9599a319eb5ec87a1aaafbadef697f0 (diff) | |
parent | 82c045ecfeaa4d8bb97fef521c3c86c7ba169b51 (diff) | |
download | gcc-5b14291b54fe72407b840631511d1c3bb07df22e.zip gcc-5b14291b54fe72407b840631511d1c3bb07df22e.tar.gz gcc-5b14291b54fe72407b840631511d1c3bb07df22e.tar.bz2 |
Merge #1124
1124: CI: do not push Docker image in a fork r=philberty a=liushuyu
- ci: skip docker image push when in a fork
Co-authored-by: liushuyu <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 |