mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-25 15:28:52 +01:00
ca58d7cd58
The Compose Specification supports adding labels to the build image which is also used in practice. Support this and pass the labels to `podman build`. Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
23 lines
633 B
YAML
23 lines
633 B
YAML
version: "3"
|
|
services:
|
|
test_build_labels_map:
|
|
build:
|
|
context: ./context
|
|
dockerfile: Dockerfile
|
|
labels:
|
|
com.example.description: "Accounting webapp"
|
|
com.example.department: "Finance"
|
|
com.example.label-with-empty-value: ""
|
|
image: my-busybox-build-labels-map
|
|
command: env
|
|
test_build_labels_array:
|
|
build:
|
|
context: ./context
|
|
dockerfile: Dockerfile
|
|
labels:
|
|
- "com.example.description=Accounting webapp"
|
|
- "com.example.department=Finance"
|
|
- "com.example.label-with-empty-value"
|
|
image: my-busybox-build-labels-array
|
|
command: env
|