From cff07df070bac12cdb673b198bb44f98f6942e7c Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Tue, 1 Oct 2024 00:16:11 +0200 Subject: [PATCH 1/3] test --- .github/workflows/pull-ex-buildx-images.yml | 135 ++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 .github/workflows/pull-ex-buildx-images.yml diff --git a/.github/workflows/pull-ex-buildx-images.yml b/.github/workflows/pull-ex-buildx-images.yml new file mode 100644 index 000000000000..026761dab0ec --- /dev/null +++ b/.github/workflows/pull-ex-buildx-images.yml @@ -0,0 +1,135 @@ +name: pull-ex-buildx-images + +on: + pull_request_target: + types: [opened, edited, synchronize, reopened, ready_for_review] + paths: + - "images/**" + - ".github/workflows/image-builder.yml" + push: + branches: + - main + paths: + - "images/**" + - ".github/workflows/image-builder.yml" + +jobs: + # Build the base Alpine image + build-alpine: + uses: ./.github/workflows/image-builder.yml + with: + name: alpine + dockerfile: images/alpine/Dockerfile + context: . + + # Build alpine/git image that depends on build-alpine + build-alpine-git: + needs: build-alpine + uses: ./.github/workflows/image-builder.yml + with: + name: alpine-git + dockerfile: images/alpine/git/Dockerfile + context: . + + # Build alpine/git/gke-aws-auth image that depends on build-alpine-git + build-alpine-git-gke-aws-auth: + needs: build-alpine-git + uses: ./.github/workflows/image-builder.yml + with: + name: alpine-git-gke-aws-auth + dockerfile: images/alpine/git/gke-aws-auth/Dockerfile + context: . + + # Build alpine/hadolint image that depends on build-alpine + build-alpine-hadolint: + needs: build-alpine + uses: ./.github/workflows/image-builder.yml + with: + name: alpine-hadolint + dockerfile: images/alpine/hadolint/Dockerfile + context: . + + # Build alpine/shellcheck image that depends on build-alpine + build-alpine-shellcheck: + needs: build-alpine + uses: ./.github/workflows/image-builder.yml + with: + name: alpine-shellcheck + dockerfile: images/alpine/shellcheck/Dockerfile + context: . + + # Build the base buildpack image + build-buildpack: + uses: ./.github/workflows/image-builder.yml + with: + name: buildpack + dockerfile: images/buildpack/Dockerfile + context: . + + # Build buildpack/go image that depends on build-buildpack + build-buildpack-go: + needs: build-buildpack + uses: ./.github/workflows/image-builder.yml + with: + name: buildpack-go + dockerfile: images/buildpack/go/Dockerfile + context: . + + # Build e2e-dind-k3d image + build-e2e-dind-k3d: + uses: ./.github/workflows/image-builder.yml + with: + name: e2e-dind-k3d + dockerfile: images/e2e-dind-k3d/Dockerfile + context: . + + # Build e2e-dind-nodejs image + build-e2e-dind-nodejs: + uses: ./.github/workflows/image-builder.yml + with: + name: e2e-dind-nodejs + dockerfile: images/e2e-dind-nodejs/Dockerfile + context: . + + # Build e2e-gcloud image + build-e2e-gcloud: + uses: ./.github/workflows/image-builder.yml + with: + name: e2e-gcloud + dockerfile: images/e2e-gcloud/Dockerfile + context: . + + # Build unified-agent base image + build-unified-agent: + uses: ./.github/workflows/image-builder.yml + with: + name: unified-agent + dockerfile: images/unified-agent/Dockerfile + context: . + + # Build unified-agent/go image that depends on build-unified-agent + build-unified-agent-go: + needs: build-unified-agent + uses: ./.github/workflows/image-builder.yml + with: + name: unified-agent-go + dockerfile: images/unified-agent/go/Dockerfile + context: . + + # Build unified-agent/nodejs image that depends on build-unified-agent + build-unified-agent-nodejs: + needs: build-unified-agent + uses: ./.github/workflows/image-builder.yml + with: + name: unified-agent-nodejs + dockerfile: images/unified-agent/nodejs/Dockerfile + context: . + + # Build unified-agent/python image that depends on build-unified-agent + build-unified-agent-python: + needs: build-unified-agent + uses: ./.github/workflows/image-builder.yml + with: + name: unified-agent-python + dockerfile: images/unified-agent/python/Dockerfile + context: . From 962902a7ad3642ab5f60d7d8c2d8259b741b2190 Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Tue, 1 Oct 2024 00:16:40 +0200 Subject: [PATCH 2/3] test --- .github/workflows/pull-ex-buildx-images.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-ex-buildx-images.yml b/.github/workflows/pull-ex-buildx-images.yml index 026761dab0ec..a86b8361445f 100644 --- a/.github/workflows/pull-ex-buildx-images.yml +++ b/.github/workflows/pull-ex-buildx-images.yml @@ -12,7 +12,7 @@ on: paths: - "images/**" - ".github/workflows/image-builder.yml" - + workflow_dispatch: {} jobs: # Build the base Alpine image build-alpine: From 717fded20170335963dbf571ae57d42c9212c7e5 Mon Sep 17 00:00:00 2001 From: Patryk Dobrowolski Date: Tue, 1 Oct 2024 10:43:20 +0200 Subject: [PATCH 3/3] remove unused --- .github/workflows/pull-ex-buildx-images.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/pull-ex-buildx-images.yml b/.github/workflows/pull-ex-buildx-images.yml index a86b8361445f..3731c1034ced 100644 --- a/.github/workflows/pull-ex-buildx-images.yml +++ b/.github/workflows/pull-ex-buildx-images.yml @@ -40,24 +40,6 @@ jobs: dockerfile: images/alpine/git/gke-aws-auth/Dockerfile context: . - # Build alpine/hadolint image that depends on build-alpine - build-alpine-hadolint: - needs: build-alpine - uses: ./.github/workflows/image-builder.yml - with: - name: alpine-hadolint - dockerfile: images/alpine/hadolint/Dockerfile - context: . - - # Build alpine/shellcheck image that depends on build-alpine - build-alpine-shellcheck: - needs: build-alpine - uses: ./.github/workflows/image-builder.yml - with: - name: alpine-shellcheck - dockerfile: images/alpine/shellcheck/Dockerfile - context: . - # Build the base buildpack image build-buildpack: uses: ./.github/workflows/image-builder.yml