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