@@ -17,7 +17,7 @@ permissions:
1717 pull-requests : write
1818
1919jobs :
20- build :
20+ buildx-bake :
2121 runs-on : ubuntu-24.04
2222 steps :
2323 - name : Checkout code
2727 fetch-depth : 0
2828 persist-credentials : false
2929
30- - name : Set lowercase image name
31- run : |
32- echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
33-
34- - name : Set up Homebrew
35- uses : Homebrew/actions/setup-homebrew@main
36-
37- - name : Setup Homebrew cellar cache
38- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
39- with :
40- path : |
41- /home/linuxbrew/.linuxbrew/Cellar
42- /home/linuxbrew/.linuxbrew/bin
43- /home/linuxbrew/.linuxbrew/etc
44- /home/linuxbrew/.linuxbrew/include
45- /home/linuxbrew/.linuxbrew/lib
46- /home/linuxbrew/.linuxbrew/opt
47- /home/linuxbrew/.linuxbrew/sbin
48- /home/linuxbrew/.linuxbrew/share
49- /home/linuxbrew/.linuxbrew/var
50- key : ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }}
51- restore-keys : |
52- ${{ runner.os }}-go-homebrew-cellar-
53-
54- - name : Install Brew dependencies
55- run : |
56- brew bundle
30+ - name : Set up Docker Buildx
31+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
5732
5833 - name : Log into registry
5934 uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -62,24 +37,13 @@ jobs:
6237 username : ${{ github.repository_owner }}
6338 password : ${{ secrets.GITHUB_TOKEN }}
6439
65- - name : Docker meta
66- id : meta
67- uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
68- with :
69- images : ${{ env.IMAGE }}
70-
7140 - name : Build and push
7241 id : build
73- run : |
74- npm ci
75- npm run container
76- env :
77- DOCKER_REPO : ${{ env.IMAGE }}
78- SLOG_LEVEL : debug
79-
80- - name : Generate artifact attestation
81- uses : actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0
42+ uses : docker/bake-action@76f9fa3a758507623da19f6092dc4089a7e61592 # v6.6.0
8243 with :
83- subject-name : ${{ env.IMAGE }}
84- subject-digest : ${{ steps.build.outputs.digest }}
85- push-to-registry : true
44+ source : .
45+ push : true
46+ sbom : true
47+ cache-from : type=gha
48+ cache-to : type=gha,mode=max
49+ set : " "
0 commit comments