mirror of
https://github.com/docker/bake-action.git
synced 2026-01-22 12:22:21 +01:00
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:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -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 .}}'
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user