Merge pull request #201 from crazy-max/ci-use-stable

ci: switch to stable buildkit image for load and push
This commit is contained in:
CrazyMax
2024-04-22 16:39:34 +02:00
committed by GitHub

View File

@@ -459,9 +459,7 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
# TODO: use buildx-stable-1 image when v0.13 promoted
driver-opts: |
image=moby/buildkit:v0.13.0
network=host
-
name: Build and push
@@ -504,23 +502,20 @@ jobs:
uses: docker/setup-buildx-action@v3
with:
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
# TODO: use buildx-stable-1 image when v0.13 promoted
driver-opts: |
image=moby/buildkit:v0.13.0
network=host
-
name: Build and push
uses: ./
with:
workdir: ./test/go
targets: image
load: true
push: true
set: |
*.tags=localhost:5000/name/app:latest
-
name: Check registry
# TODO: enable when --load case fixed (currently overrides --push)
if: false
run: |
docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
-