From 30e53c5399c71ea029c841f301ef0fad5f9160b8 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sat, 10 Sep 2022 03:19:06 +0200 Subject: [PATCH] Use docker/bake-action instead of build script --- .github/workflows/image.yml | 10 ++++++++-- build/bin/build | 6 ------ 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100755 build/bin/build diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 529e1d3..1b38934 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -28,5 +28,11 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build image - run: build/bin/build \ No newline at end of file + name: Build and push + uses: docker/bake-action@v2.2.0 + with: + files: build/docker-bake.hcl + push: true + set: | + *.cache-from=type=gha + *.cache-to=type=gha,mode=max \ No newline at end of file diff --git a/build/bin/build b/build/bin/build deleted file mode 100755 index 0b46b29..0000000 --- a/build/bin/build +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -docker buildx bake --set *."cache-from=type=gha" -docker buildx bake --set *."cache-to=type=gha,mode=max" - -docker buildx bake --pull --file "build/docker-bake.hcl" \ No newline at end of file