Skip to content

Commit c49557b

Browse files
authored
Update action.yml
1 parent 628042b commit c49557b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

action.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ runs:
5959
# https://docs.docker.com/develop/develop-images/build_enhancements/
6060
# https://docs.docker.com/engine/reference/commandline/build/#specifying-external-cache-sources
6161
docker build . \
62+
--quiet \
6263
--cache-from ${{ inputs.repository }}/${{ inputs.image_name }}:latest \
6364
--build-arg BUILDKIT_INLINE_CACHE=1 \
6465
\
@@ -74,15 +75,19 @@ runs:
7475
\
7576
--label org.opencontainers.image.created=${BUILD_DATE} \
7677
--label org.opencontainers.image.source=${GITHUB_URL} \
77-
--label org.opencontainers.image.revision=${GITHUB_SHA} \
78-
| tee
78+
--label org.opencontainers.image.revision=${GITHUB_SHA}
7979
8080
echo "::endgroup::"
8181
8282
echo "::group::Inspecting the image ..."
8383
docker images
84+
85+
echo "Labels:"
8486
docker image inspect ${{ inputs.repository }}/${{ inputs.image_name }}:${COMMIT_TAG} | jq '.[].Config.Labels'
87+
88+
echo "Env variables:"
8589
docker image inspect ${{ inputs.repository }}/${{ inputs.image_name }}:${COMMIT_TAG} | jq '.[].Config.Env'
90+
8691
echo "::endgroup::"
8792
8893
echo "::group::Pushing the Docker image to ${{ inputs.repository }} ..."

0 commit comments

Comments
 (0)