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