beacon-node-builds: add commit to labels

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-22 16:05:56 +01:00
parent a269c3e490
commit dd70e0652d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ find build -name 'nimbus_beacon_node_*' -mtime +7 -exec rm '{}' \+
popd
# Add binary into a simple Alpine image
docker build -t "${IMAGE}:${COMMIT_AFTER}" --build-arg=COMMIT=${COMMIT_AFTER} .
docker build -t "${IMAGE}:${COMMIT_AFTER}" \
--label "commit=${COMMIT_AFTER}" \
--build-arg=COMMIT=${COMMIT_AFTER} .
docker tag "${IMAGE}:${COMMIT_AFTER}" "${IMAGE}:${TAG}"
docker push "${IMAGE}:${TAG}"