Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: login into gitlab registry (#3296)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 8, 2022
1 parent 2fecd94 commit 042c638
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/entrypoint.sh
Expand Up @@ -20,7 +20,12 @@ if [ -n "$GITHUB_TOKEN" ]; then
echo "$GITHUB_TOKEN" | docker login ghcr.io -u docker --password-stdin
fi

# prevents git from complaining about unsafe dir. especially when using github actions
if [ -n "$CI_REGISTRY_PASSWORD" ]; then
# Log into GitLab registry
echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
fi

# prevents git from complaining about unsafe dir, specially when using github actions
git config --global --add safe.directory .

# shellcheck disable=SC2068
Expand Down

0 comments on commit 042c638

Please sign in to comment.