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

This commit is contained in:
Till!
2020-08-06 15:08:05 -03:00
committed by GitHub
parent 9618deba13
commit bc940a9052
+5
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 $@