mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 06:30:07 +01:00
Use docker/bake-action instead of build script
This commit is contained in:
parent
946d08341a
commit
30e53c5399
10
.github/workflows/image.yml
vendored
10
.github/workflows/image.yml
vendored
|
@ -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
|
|
@ -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"
|
|
Loading…
Reference in New Issue
Block a user