1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

feat: log into Github package registry with token on our docker image (#1703)

This commit is contained in:
Till! 2020-08-06 20:08:05 +02:00 committed by GitHub
parent 9618deba13
commit bc940a9052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,4 +14,9 @@ if [ -n "$GORELEASER_GITHUB_TOKEN" ] ; then
export GITHUB_TOKEN=$GORELEASER_GITHUB_TOKEN
fi
if [ -n "$GITHUB_TOKEN" ]; then
# Log into GitHub package registry
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u docker --password-stdin
fi
goreleaser $@