From 6c82ce010bc86ab0e2ddbc443e4f3feb0be23429 Mon Sep 17 00:00:00 2001 From: Florian Paul Azim Hoberg Date: Tue, 20 May 2025 12:02:03 +0200 Subject: [PATCH] feature: Add workflows to build container images for AMD64 + ARM64 architecture Fixes: #231 --- .../30-pipeline-build-container-amd64.yml | 26 +++++++++++++++++++ .../30-pipeline-build-container-arm64.yml | 26 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/30-pipeline-build-container-amd64.yml create mode 100644 .github/workflows/30-pipeline-build-container-arm64.yml diff --git a/.github/workflows/30-pipeline-build-container-amd64.yml b/.github/workflows/30-pipeline-build-container-amd64.yml new file mode 100644 index 0000000..342d81c --- /dev/null +++ b/.github/workflows/30-pipeline-build-container-amd64.yml @@ -0,0 +1,26 @@ +name: "Build Container Image: AMD64" +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build amd64 image and save as tar + run: | + docker buildx build \ + --platform linux/amd64 \ + --load \ + -t proxlb-image:amd64 \ + . + + docker save proxlb-image:amd64 -o proxlb_image_amd64.tar + - name: Upload Docker image artifact + uses: actions/upload-artifact@v4 + with: + name: proxlb-image-amd64 + path: proxlb_image_amd64.tar diff --git a/.github/workflows/30-pipeline-build-container-arm64.yml b/.github/workflows/30-pipeline-build-container-arm64.yml new file mode 100644 index 0000000..e3ce744 --- /dev/null +++ b/.github/workflows/30-pipeline-build-container-arm64.yml @@ -0,0 +1,26 @@ +name: "Build Container Image: ARM64" +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build arm64 image and save as tar + run: | + docker buildx build \ + --platform linux/arm64 \ + --load \ + -t proxlb-image:arm64 \ + . + + docker save proxlb-image:arm64 -o proxlb_image_arm64.tar + - name: Upload Docker image artifact + uses: actions/upload-artifact@v4 + with: + name: proxlb-image-arm64 + path: proxlb_image_arm64.tar