From 88e46d8cf7cf7c755d5703583191e05d1918836e Mon Sep 17 00:00:00 2001 From: JenTing Hsiao Date: Fri, 23 Apr 2021 12:33:39 +0800 Subject: [PATCH] Only publish the container image from the root repo (#73) Signed-off-by: JenTing Hsiao --- .github/workflows/push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ac9fde06..25260902 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -28,7 +28,9 @@ jobs: - name: Test run: make test + # Only try to publish the container image from the root repo; forks don't have permission to do so and will always get failures. - name: Publish container image + if: github.repository == 'vmware-tanzu/velero-plugin-for-aws' run: | docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} ./hack/docker-push.sh