-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then | ||
echo "Login to the docker..." | ||
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY | ||
fi | ||
|
||
# Workaround for github actions when access to different repositories is needed. | ||
# Github actions provides a GITHUB_TOKEN secret that can only access the current | ||
# repository and you cannot configure it's value. | ||
# Access to different repositories is needed by brew for example. | ||
|
||
if [ -n "$GORELEASER_GITHUB_TOKEN" ] ; then | ||
export GITHUB_TOKEN=$GORELEASER_GITHUB_TOKEN | ||
fi | ||
|
||
goreleaser $@ |