public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] CI: do not push Docker image ...
@ 2022-06-08 12:32 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:32 UTC (permalink / raw)
To: gcc-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:32 [gcc/devel/rust/master] CI: do not push Docker image Thomas Schwinge
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).