mirror of
https://github.com/N0rthernL1ghts/s6-rootfs.git
synced 2024-11-23 13:03:29 +01:00
Replace build file with docker/bake-action and implement GHA cache
This commit is contained in:
parent
138c59b810
commit
ff35d9e0ef
19
.github/workflows/image.yml
vendored
19
.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
|
||||
|
@ -37,5 +28,11 @@ jobs:
|
|||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
-
|
||||
name: Build image
|
||||
run: build/bin/build
|
||||
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
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
docker buildx bake --push --file build/docker-bake.hcl
|
Loading…
Reference in New Issue
Block a user