From 3c8a0867329e0c5b19f83f9aa347bb6c54677f76 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 9 Apr 2025 22:09:21 -0400 Subject: [PATCH] fml --- .github/workflows/docker.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d849cf3d47..3aba8acb21 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,11 +15,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - - name: Install build dependencies - run: | - sudo apt-get update - sudo apt-get install -y build-essential g++ - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -34,23 +29,23 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push base image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . file: Dockerfile.base push: true tags: ${{ env.BASE_IMAGE_NAME }}:latest - platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x - name: Extract tag version id: get_version run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - name: Build and push main image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: . push: true - platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x tags: | ${{ contains(steps.get_version.outputs.VERSION, '-') && format('{0}:{1}', env.IMAGE_NAME, steps.get_version.outputs.VERSION) || format('{0}:{1},{0}:latest', env.IMAGE_NAME, steps.get_version.outputs.VERSION) }}