You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
feat: support ghcr.io (#1784)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3f85797df0
commit
c4dfc3a1e7
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then
|
||||
echo "Login to the docker..."
|
||||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin $DOCKER_REGISTRY
|
||||
echo "Login to the docker..."
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY"
|
||||
fi
|
||||
|
||||
# Workaround for github actions when access to different repositories is needed.
|
||||
@@ -11,12 +11,14 @@ fi
|
||||
# Access to different repositories is needed by brew for example.
|
||||
|
||||
if [ -n "$GORELEASER_GITHUB_TOKEN" ] ; then
|
||||
export GITHUB_TOKEN=$GORELEASER_GITHUB_TOKEN
|
||||
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
|
||||
# Log into GitHub package registry
|
||||
echo "$GITHUB_TOKEN" | docker login docker.pkg.github.com -u docker --password-stdin
|
||||
echo "$GITHUB_TOKEN" | docker login ghcr.io -u docker --password-stdin
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2068
|
||||
goreleaser $@
|
||||
|
||||
Reference in New Issue
Block a user