| 1 | version: "3" |
| 2 | services: |
| 3 | test_build_labels_map: |
| 4 | build: |
| 5 | context: ./context |
| 6 | dockerfile: Dockerfile |
| 7 | labels: |
| 8 | com.example.description: "Accounting webapp" |
| 9 | com.example.department: "Finance" |
| 10 | com.example.label-with-empty-value: "" |
| 11 | image: my-busybox-build-labels-map |
| 12 | command: env |
| 13 | test_build_labels_array: |
| 14 | build: |
| 15 | context: ./context |
| 16 | dockerfile: Dockerfile |
| 17 | labels: |
| 18 | - "com.example.description=Accounting webapp" |
| 19 | - "com.example.department=Finance" |
| 20 | - "com.example.label-with-empty-value" |
| 21 | image: my-busybox-build-labels-array |
| 22 | command: env |