-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from crazy-max/env-output
Provide outputs as env vars
- Loading branch information
Showing
7 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM alpine | ||
RUN apk add --no-cache coreutils jq | ||
ARG BUILDINFO | ||
RUN printenv BUILDINFO | ||
RUN echo $BUILDINFO | jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM alpine | ||
RUN apk add --no-cache coreutils jq | ||
ARG DOCKER_METADATA_OUTPUT_VERSION | ||
ARG DOCKER_METADATA_OUTPUT_TAGS | ||
ARG DOCKER_METADATA_OUTPUT_LABELS | ||
ARG DOCKER_METADATA_OUTPUT_JSON | ||
RUN printenv DOCKER_METADATA_OUTPUT_VERSION | ||
RUN printenv DOCKER_METADATA_OUTPUT_TAGS | ||
RUN printenv DOCKER_METADATA_OUTPUT_LABELS | ||
RUN printenv DOCKER_METADATA_OUTPUT_JSON | ||
RUN echo $DOCKER_METADATA_OUTPUT_JSON | jq |