Commit 68f1b2c
committed
Add back metadata labels to the OCI build
This fixes a regression from 6692fcb: setting the `labels` to the
output of the metadata step attaches useful standardized labels like
the git hash when built, the source URL and the created timestamp.
Actions like `int128/wait-for-docker-image-action` used in the
`peer-discovery-aws` workflow use the revision label to detect that the
latest image has the desired hash.
Without setting `labels` we seem to inherit the version label from the
base erlang image:
$ docker image inspect -f '{{ json .Config.Labels }}' \
pivotalrabbitmq/rabbitmq:sha-0e7b53c6a8b682411c3f0024691a4760d8219699-otp27
{"org.opencontainers.image.version":"27.2.1"}1 parent 677f253 commit 68f1b2c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments