Populate digest after push. Refactor tests to use contains for checking

This commit is contained in:
Lars Gohr
2019-12-14 19:56:49 +01:00
parent be578a6a24
commit ae6a789cff
3 changed files with 86 additions and 105 deletions

View File

@@ -43,7 +43,9 @@ function main() {
else
pushWithoutSnapshot
fi
echo ::set-output name=tag::"${TAG}"
echo "::set-output name=tag::${TAG}"
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${DOCKERNAME})
echo "::set-output name=digest::${DIGEST}"
docker logout
}