From 4dfe01e71c64ef27e7e4e6604d3d0ff6a622b31f Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Sun, 21 Jul 2024 04:39:24 +0300 Subject: [PATCH] Update gh actions --- .github/workflows/build.yaml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bdec98d..583c2aa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,7 +8,6 @@ on: - cron: '0 0 * * *' workflow_dispatch: - jobs: build: runs-on: ubuntu-latest @@ -18,6 +17,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + buildkitd-flags: '--allow-insecure-entitlement security.insecure' + - name: Login to Docker Hub uses: docker/login-action@v3 @@ -28,16 +30,11 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Build and push Docker image - env: - DOCKER_BUILDKIT: 1 - run: | - docker buildx create --driver-opt image=moby/buildkit:master --use --name insecure-builder --buildkitd-flags '--allow-insecure-entitlement security.insecure' - docker buildx use insecure-builder - docker buildx build \ - --progress=plain \ - --allow security.insecure \ - --platform linux/amd64,linux/arm64,linux/arm/v7 \ - --tag bredos/bredos:latest \ - --file Dockerfile \ - --push . \ No newline at end of file + - name: Build and push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64v8,linux/arm32v7 + push: true + tags: bredos/bredos:latest + file: Dockerfile + allow: security.insecure