1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-10-30 23:58:09 +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

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 $@