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