@@ -1254,3 +1254,95 @@ jobs:
12541254 name : Check manifest
12551255 run : |
12561256 docker buildx imagetools inspect ${{ env.DOCKER_IMAGE }}:${{ steps.meta.outputs.version }} --format '{{json .}}'
1257+
1258+ multi-output :
1259+ runs-on : ubuntu-latest
1260+ services :
1261+ registry :
1262+ image : registry:2
1263+ ports :
1264+ - 5000:5000
1265+ steps :
1266+ -
1267+ name : Checkout
1268+ uses : actions/checkout@v4
1269+ -
1270+ name : Set up QEMU
1271+ uses : docker/setup-qemu-action@v3
1272+ -
1273+ name : Set up Docker Buildx
1274+ uses : docker/setup-buildx-action@v3
1275+ with :
1276+ version : ${{ inputs.buildx-version || env.BUILDX_VERSION }}
1277+ # TODO: use buildx-stable-1 image when v0.13 promoted
1278+ driver-opts : |
1279+ network=host
1280+ image=moby/buildkit:v0.13.0
1281+ buildkitd-flags : --debug
1282+ -
1283+ name : Build
1284+ uses : ./
1285+ with :
1286+ context : ./test
1287+ file : ./test/Dockerfile
1288+ outputs : |
1289+ type=image,name=localhost:5000/name/app:latest,push=true
1290+ type=docker,name=app:local
1291+ type=oci,dest=/tmp/oci.tar
1292+ -
1293+ name : Check registry
1294+ run : |
1295+ docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
1296+ -
1297+ name : Check docker
1298+ run : |
1299+ docker image inspect app:local
1300+ -
1301+ name : Check oci
1302+ run : |
1303+ set -ex
1304+ mkdir -p /tmp/oci-out
1305+ tar xf /tmp/oci.tar -C /tmp/oci-out
1306+ tree -nh /tmp/oci-out
1307+
1308+ load-and-push :
1309+ runs-on : ubuntu-latest
1310+ services :
1311+ registry :
1312+ image : registry:2
1313+ ports :
1314+ - 5000:5000
1315+ steps :
1316+ -
1317+ name : Checkout
1318+ uses : actions/checkout@v4
1319+ -
1320+ name : Set up QEMU
1321+ uses : docker/setup-qemu-action@v3
1322+ -
1323+ name : Set up Docker Buildx
1324+ uses : docker/setup-buildx-action@v3
1325+ with :
1326+ version : ${{ inputs.buildx-version || env.BUILDX_VERSION }}
1327+ # TODO: use buildx-stable-1 image when v0.13 promoted
1328+ driver-opts : |
1329+ network=host
1330+ image=moby/buildkit:v0.13.0
1331+ buildkitd-flags : --debug
1332+ -
1333+ name : Build
1334+ uses : ./
1335+ with :
1336+ context : ./test
1337+ file : ./test/Dockerfile
1338+ load : true
1339+ push : true
1340+ tags : localhost:5000/name/app:latest
1341+ -
1342+ name : Check registry
1343+ run : |
1344+ docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
1345+ -
1346+ name : Check docker
1347+ run : |
1348+ docker image inspect localhost:5000/name/app:latest
0 commit comments