Skip to content
Snippets Groups Projects
Verified Commit 9e0b3de8 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(earthly): Make docker login optional

parent 725feddc
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,11 @@
- earthly config global.disable_log_sharing true
- earthly account logout
- earthly bootstrap
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- |
if [ -n "$CI_REGISTRY" ] && [ -n "$CI_REGISTRY_USER" ] && [ -n "$CI_REGISTRY_PASSWORD" ]; then
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
else
echo "Missing variable. Skipping docker login!"
fi
tags:
- privileged
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment