From 96101630cedc2674ca8803d71b02a8ff6952b55b Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Fri, 24 May 2024 08:35:02 +0200 Subject: [PATCH] test action replace ./hooks/build, generated from #16 --- .github/workflows/images.yaml | 426 ++++++++++++++++++++++++++++++++-- 1 file changed, 409 insertions(+), 17 deletions(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 52ac1fc..0c6448c 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -38,8 +38,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + + # generated by ./test.sh for manual copy-paste to images.yaml - - name: Build and push builder-base + name: Build and push builder-base latest uses: docker/build-push-action@v5 env: SOURCE_DATE_EPOCH: 0 @@ -53,14 +55,12 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - - name: Build and push builder-base-gcc + name: Build and push builder-base-gcc latest uses: docker/build-push-action@v5 env: SOURCE_DATE_EPOCH: 0 with: context: builder-base-gcc - build-contexts: | - yolean/builder-base=docker-image://ghcr.io/yolean/builder-base:latest tags: | ghcr.io/yolean/builder-base-gcc:latest ghcr.io/yolean/builder-base-gcc:${{ github.sha }} @@ -68,16 +68,61 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base - - name: Build and push builder-quarkus + name: Build and push builder-base-gcloud latest uses: docker/build-push-action@v5 env: SOURCE_DATE_EPOCH: 0 with: - context: builder-quarkus + context: builder-base-gcloud + tags: | + ghcr.io/yolean/builder-base-gcloud:latest + ghcr.io/yolean/builder-base-gcloud:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max build-contexts: | - yolean/builder-base=docker-image://ghcr.io/yolean/builder-base:latest - yolean/builder-base-gcc=docker-image://ghcr.io/yolean/builder-base-gcc:latest + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base + - + name: Build and push builder-tooling latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: builder-tooling + tags: | + ghcr.io/yolean/builder-tooling:latest + ghcr.io/yolean/builder-tooling:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-base-gcc=docker-image://ghcr.io/yolean/builder-base-gcc + - + name: Build and push builder-node latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: builder-node + tags: | + ghcr.io/yolean/builder-node:latest + ghcr.io/yolean/builder-node:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push builder-quarkus latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: builder-quarkus tags: | ghcr.io/yolean/builder-quarkus:latest ghcr.io/yolean/builder-quarkus:${{ github.sha }} @@ -85,31 +130,378 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base + yolean/builder-base-gcc=docker-image://ghcr.io/yolean/builder-base-gcc + - + name: Build and push git-init latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: git-init + tags: | + ghcr.io/yolean/git-init:latest + ghcr.io/yolean/git-init:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base + - + name: Build and push toil latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: toil + tags: | + ghcr.io/yolean/toil:latest + ghcr.io/yolean/toil:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base + yolean/builder-base=docker-image://ghcr.io/yolean/builder-base + - + name: Build and push toil-network latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: toil-network + tags: | + ghcr.io/yolean/toil-network:latest + ghcr.io/yolean/toil-network:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/toil=docker-image://ghcr.io/yolean/toil - - name: Build and push headless-chrome + name: Build and push node-distroless latest uses: docker/build-push-action@v5 env: SOURCE_DATE_EPOCH: 0 with: - context: headless-chrome + context: node-distroless tags: | - ghcr.io/yolean/headless-chrome:latest - ghcr.io/yolean/headless-chrome:${{ github.sha }} + ghcr.io/yolean/node-distroless:latest + ghcr.io/yolean/node-distroless:${{ github.sha }} platforms: linux/amd64,linux/arm64/v8 push: true cache-from: type=gha cache-to: type=gha,mode=max - - name: Build and push runtime-quarkus + name: Build and push blobs latest uses: docker/build-push-action@v5 env: SOURCE_DATE_EPOCH: 0 with: - context: runtime-quarkus + context: blobs tags: | - ghcr.io/yolean/runtime-quarkus:latest - ghcr.io/yolean/runtime-quarkus:${{ github.sha }} - platforms: linux/amd64 + ghcr.io/yolean/blobs:latest + ghcr.io/yolean/blobs:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push java root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: java + tags: | + ghcr.io/yolean/java:root + ghcr.io/yolean/java:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push java latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/java + tags: | + ghcr.io/yolean/java:latest + ghcr.io/yolean/java:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: node + tags: | + ghcr.io/yolean/node:root + ghcr.io/yolean/node:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/node + tags: | + ghcr.io/yolean/node:latest + ghcr.io/yolean/node:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node-kafka root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: node-kafka + tags: | + ghcr.io/yolean/node-kafka:root + ghcr.io/yolean/node-kafka:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/node:root=docker-image://ghcr.io/yolean/node:root + - + name: Build and push node-kafka latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/node-kafka + tags: | + ghcr.io/yolean/node-kafka:latest + ghcr.io/yolean/node-kafka:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node-kafka-cache root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: node-kafka-cache + tags: | + ghcr.io/yolean/node-kafka-cache:root + ghcr.io/yolean/node-kafka-cache:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/node-kafka:root=docker-image://ghcr.io/yolean/node-kafka:root + - + name: Build and push node-kafka-cache latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/node-kafka-cache + tags: | + ghcr.io/yolean/node-kafka-cache:latest + ghcr.io/yolean/node-kafka-cache:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node-watchexec root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: node-watchexec + tags: | + ghcr.io/yolean/node-watchexec:root + ghcr.io/yolean/node-watchexec:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node-watchexec latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/node-watchexec + tags: | + ghcr.io/yolean/node-watchexec:latest + ghcr.io/yolean/node-watchexec:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push node-gcloud root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: node-gcloud + tags: | + ghcr.io/yolean/node-gcloud:root + ghcr.io/yolean/node-gcloud:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/node:root=docker-image://ghcr.io/yolean/node:root + - + name: Build and push node-gcloud latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/node-gcloud + tags: | + ghcr.io/yolean/node-gcloud:latest + ghcr.io/yolean/node-gcloud:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push runtime-quarkus-ubuntu root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: runtime-quarkus-ubuntu + tags: | + ghcr.io/yolean/runtime-quarkus-ubuntu:root + ghcr.io/yolean/runtime-quarkus-ubuntu:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push runtime-quarkus-ubuntu latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/runtime-quarkus-ubuntu + tags: | + ghcr.io/yolean/runtime-quarkus-ubuntu:latest + ghcr.io/yolean/runtime-quarkus-ubuntu:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push runtime-quarkus-ubuntu-jre root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: runtime-quarkus-ubuntu-jre + tags: | + ghcr.io/yolean/runtime-quarkus-ubuntu-jre:root + ghcr.io/yolean/runtime-quarkus-ubuntu-jre:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/java:root=docker-image://ghcr.io/yolean/java:root + yolean/runtime-quarkus-ubuntu:root=docker-image://ghcr.io/yolean/runtime-quarkus-ubuntu:root + - + name: Build and push runtime-quarkus-ubuntu-jre latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/runtime-quarkus-ubuntu-jre + tags: | + ghcr.io/yolean/runtime-quarkus-ubuntu-jre:latest + ghcr.io/yolean/runtime-quarkus-ubuntu-jre:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push runtime-quarkus-dev root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: runtime-quarkus-dev + tags: | + ghcr.io/yolean/runtime-quarkus-dev:root + ghcr.io/yolean/runtime-quarkus-dev:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/builder-quarkus=docker-image://ghcr.io/yolean/builder-quarkus + yolean/runtime-quarkus-ubuntu:root=docker-image://ghcr.io/yolean/runtime-quarkus-ubuntu:root + - + name: Build and push runtime-quarkus-dev latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/runtime-quarkus-dev + tags: | + ghcr.io/yolean/runtime-quarkus-dev:latest + ghcr.io/yolean/runtime-quarkus-dev:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + - + name: Build and push toil-storage root + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: toil-storage + tags: | + ghcr.io/yolean/toil-storage:root + ghcr.io/yolean/toil-storage:${{ github.sha }}-root + platforms: linux/amd64,linux/arm64/v8 + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + build-contexts: | + yolean/toil=docker-image://ghcr.io/yolean/toil + yolean/docker-base=docker-image://ghcr.io/yolean/docker-base + - + name: Build and push toil-storage latest + uses: docker/build-push-action@v5 + env: + SOURCE_DATE_EPOCH: 0 + with: + context: to-nonroot/toil-storage + tags: | + ghcr.io/yolean/toil-storage:latest + ghcr.io/yolean/toil-storage:${{ github.sha }} + platforms: linux/amd64,linux/arm64/v8 push: true cache-from: type=gha cache-to: type=gha,mode=max