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