Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Commit b453a55

Browse files
committed
Toolbox
1 parent 2efd795 commit b453a55

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
images: ghcr.io/${{ github.repository }}
3434
labels: |
3535
maintainer=Aleksandr Mezin <mezin.alexander@gmail.com>
36+
com.github.containers.toolbox=true
3637
3738
- id: docker_build
3839
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
@@ -48,6 +49,19 @@ jobs:
4849
${{ steps.docker_meta.outputs.tags }}
4950
cache-to: type=inline
5051

52+
- id: podman_pull
53+
run: |
54+
imageid="$(podman pull "docker-daemon:$IMAGE_ID")"
55+
echo "imageid=$imageid" | tee "$GITHUB_OUTPUT"
56+
env:
57+
IMAGE_ID: ${{ steps.docker_build.outputs.imageid }}
58+
59+
- run: sudo apt-get update && sudo apt-get install -y podman-toolbox
60+
61+
- run: toolbox create -i "$IMAGE_ID" toolbox
62+
env:
63+
IMAGE_ID: ${{ steps.podman_pull.outputs.imageid }}
64+
5165
- run: >-
5266
docker run --rm -v ./test.sh:/test.sh:ro --privileged --cgroupns=host
5367
${{ steps.docker_build.outputs.imageid }} /test.sh

0 commit comments

Comments
 (0)