Use docker/bake-action instead of build script

This commit is contained in:
Aleksandar Puharic 2022-09-10 03:19:06 +02:00
parent 946d08341a
commit 30e53c5399
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB
2 changed files with 8 additions and 8 deletions

View File

@ -28,5 +28,11 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- -
name: Build image name: Build and push
run: build/bin/build 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

View File

@ -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"