Skip to content
Permalink
Browse files
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 042c63884c3c1cbf8257571b18b2df82994bb947
Showing 1 changed file with 6 additions and 1 deletion.
@@ -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

0 comments on commit 042c638

Please sign in to comment.