Skip to content

Commit 68f1b2c

Browse files
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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/oci-make.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ jobs:
115115
with:
116116
push: true
117117
context: packaging/docker-image
118+
labels: ${{ steps.meta.outputs.labels }}
118119
platforms: ${{ github.event.inputs.build_arm && 'linux/amd64, linux/arm64' || 'linux/amd64' }}
119120
tags: ${{ steps.meta.outputs.tags }}
120121
cache-to: type=gha,mode=max,scope=${{ matrix.otp_version }}

0 commit comments

Comments
 (0)