This commit is contained in:
parent
cb0c4125c6
commit
b746f35855
@ -20,11 +20,8 @@ steps:
|
|||||||
from_secret: pass
|
from_secret: pass
|
||||||
REGISTRY:
|
REGISTRY:
|
||||||
from_secret: registry
|
from_secret: registry
|
||||||
|
DOCKER_OPTS: "--insecure-registry=$REGISTRY"
|
||||||
commands:
|
commands:
|
||||||
- |
|
|
||||||
mkdir -p /etc/docker && echo '{"insecure-registries": ["${REGISTRY}"]}' \
|
|
||||||
> /etc/docker/daemon.json
|
|
||||||
- killall -HUP dockerd
|
|
||||||
- git clone --recursive https://git.manalejandro.com/ale/libretranslate-api /drone/src/
|
- git clone --recursive https://git.manalejandro.com/ale/libretranslate-api /drone/src/
|
||||||
- docker login -u $USER -p $PASS $REGISTRY
|
- docker login -u $USER -p $PASS $REGISTRY
|
||||||
- cd /drone/src && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f docker/Dockerfile ./LibreTranslate
|
- cd /drone/src && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f docker/Dockerfile ./LibreTranslate
|
||||||
|
Loading…
Reference in New Issue
Block a user