mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
⬆️ Remove backward compatibility for set-output
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
@@ -66,14 +66,12 @@ main() {
|
||||
push
|
||||
fi
|
||||
|
||||
echo "::set-output name=tag::${FIRST_TAG}"
|
||||
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_OUTPUT"
|
||||
|
||||
docker logout
|
||||
@@ -184,7 +182,6 @@ useSnapshot() {
|
||||
local SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-6)
|
||||
local SNAPSHOT_TAG="${TIMESTAMP}${SHORT_SHA}"
|
||||
TAGS="${TAGS} ${SNAPSHOT_TAG}"
|
||||
echo "::set-output name=snapshot-tag::${SNAPSHOT_TAG}"
|
||||
echo "snapshot-tag=${SNAPSHOT_TAG}" >> "$GITHUB_OUTPUT"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user