From ed8e7af339e79366210b65a7b50ed51b9561ec38 Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Fri, 15 May 2026 23:35:50 +0300 Subject: [PATCH 1/2] skip job in forks --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5848a4a6..5d080d837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: cache-to: type=gha,mode=min,scope=buildx build-and-push-image: - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.repository == 'docker/docker-agent' needs: [lint, build-and-test, license-check] runs-on: ubuntu-latest steps: From 148a8ff601a48c38ebe567cb9ccb1522b9513a10 Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Mon, 18 May 2026 09:31:11 +0300 Subject: [PATCH 2/2] update event condition --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d080d837..5f2086792 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: cache-to: type=gha,mode=min,scope=buildx build-and-push-image: - if: github.event_name != 'pull_request' && github.repository == 'docker/docker-agent' + if: github.event_name != 'pull_request' && !github.event.repository.fork needs: [lint, build-and-test, license-check] runs-on: ubuntu-latest steps: