mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-28 14:09:33 +00:00
CI: add Docker authentication on image build
This commit is contained in:
@@ -20,6 +20,9 @@ jobs:
|
||||
directories:
|
||||
- imgcache
|
||||
before_script:
|
||||
- if [ -z "$DOCKER_USERNAME" ]
|
||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||
fi
|
||||
- docker pull ${DOCKER}
|
||||
# Check if there are any cached images, copy them to our "images" directory
|
||||
- if [ -n "$(ls -A imgcache/*.zip)" ]; then mkdir -p images && cp imgcache/*.zip images; fi
|
||||
|
||||
Reference in New Issue
Block a user