@@ -1254,3 +1254,93 @@ jobs:
1254
1254
name : Check manifest
1255
1255
run : |
1256
1256
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
+ tar xf /tmp/oci.tar -C /tmp/oci-out
1304
+ tree /tmp/oci-out
1305
+
1306
+ load-and-push :
1307
+ runs-on : ubuntu-latest
1308
+ services :
1309
+ registry :
1310
+ image : registry:2
1311
+ ports :
1312
+ - 5000:5000
1313
+ steps :
1314
+ -
1315
+ name : Checkout
1316
+ uses : actions/checkout@v4
1317
+ -
1318
+ name : Set up QEMU
1319
+ uses : docker/setup-qemu-action@v3
1320
+ -
1321
+ name : Set up Docker Buildx
1322
+ uses : docker/setup-buildx-action@v3
1323
+ with :
1324
+ version : ${{ inputs.buildx-version || env.BUILDX_VERSION }}
1325
+ # TODO: use buildx-stable-1 image when v0.13 promoted
1326
+ driver-opts : |
1327
+ network=host
1328
+ image=moby/buildkit:v0.13.0
1329
+ buildkitd-flags : --debug
1330
+ -
1331
+ name : Build
1332
+ uses : ./
1333
+ with :
1334
+ context : ./test
1335
+ file : ./test/Dockerfile
1336
+ load : true
1337
+ push : true
1338
+ tags : localhost:5000/name/app:latest
1339
+ -
1340
+ name : Check registry
1341
+ run : |
1342
+ docker buildx imagetools inspect localhost:5000/name/app:latest --format '{{json .}}'
1343
+ -
1344
+ name : Check docker
1345
+ run : |
1346
+ docker image inspect localhost:5000/name/app:latest
0 commit comments