mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 14:13:27 +01:00
Use gha cache
This commit is contained in:
parent
568e47cd50
commit
870c48c070
9
.github/workflows/image.yml
vendored
9
.github/workflows/image.yml
vendored
|
@ -11,15 +11,6 @@ jobs:
|
|||
-
|
||||
name: checkout code
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Cache Docker layers
|
||||
uses: actions/cache@v3
|
||||
id: cache
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-buildx-
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
docker buildx bake --push --file build/docker-bake.hcl
|
||||
docker buildx \
|
||||
--cache-from "type=gha" \
|
||||
--cache-to "type=gha,mode=max" \
|
||||
bake --pull --file "build/docker-bake.hcl"
|
|
@ -7,7 +7,7 @@ target "build-dockerfile" {
|
|||
}
|
||||
|
||||
target "build-platforms" {
|
||||
platforms = ["linux/amd64", "linux/armhf", "linux/aarch64"]
|
||||
platforms = ["linux/amd64"]
|
||||
}
|
||||
|
||||
target "build-common" {
|
||||
|
|
Loading…
Reference in New Issue
Block a user