mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
Use the new set output (#171)
This commit is contained in:
@@ -67,14 +67,14 @@ main() {
|
||||
fi
|
||||
|
||||
echo "::set-output name=tag::${FIRST_TAG}"
|
||||
echo "tag=${FIRST_TAG}" >> "$GITHUB_ENV"
|
||||
echo "tag=${FIRST_TAG}" >> "$GITHUB_OUTPUT"
|
||||
if uses "${INPUT_PLATFORMS}"; then
|
||||
DIGEST=$(jq -r '."containerimage.digest"' metadata.json)
|
||||
else
|
||||
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${DOCKERNAME})
|
||||
fi
|
||||
echo "::set-output name=digest::${DIGEST}"
|
||||
echo "digest=${DIGEST}" >> "$GITHUB_ENV"
|
||||
echo "digest=${DIGEST}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
docker logout
|
||||
}
|
||||
@@ -185,7 +185,7 @@ useSnapshot() {
|
||||
local SNAPSHOT_TAG="${TIMESTAMP}${SHORT_SHA}"
|
||||
TAGS="${TAGS} ${SNAPSHOT_TAG}"
|
||||
echo "::set-output name=snapshot-tag::${SNAPSHOT_TAG}"
|
||||
echo "snapshot-tag=${SNAPSHOT_TAG}" >> "$GITHUB_ENV"
|
||||
echo "snapshot-tag=${SNAPSHOT_TAG}" >> "$GITHUB_OUTPUT"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user