public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/rust/master] CI: do not push Docker image ...
Date: Wed,  8 Jun 2022 12:32:37 +0000 (GMT)	[thread overview]
Message-ID: <20220608123237.E097438887AA@sourceware.org> (raw)

https://gcc.gnu.org/g:82c045ecfeaa4d8bb97fef521c3c86c7ba169b51

commit 82c045ecfeaa4d8bb97fef521c3c86c7ba169b51
Author: liushuyu <liushuyu011@gmail.com>
Date:   Sat Apr 16 21:39:30 2022 -0600

    CI: do not push Docker image ...
    
    ... when the workflow is ran in a forked repository
    
    Signed-off-by: Zixing Liu <liushuyu011@gmail.com>

Diff:
---
 .github/workflows/docker.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 24ed1b7ae8d..f332116daa1 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


                 reply	other threads:[~2022-06-08 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220608123237.E097438887AA@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).