.drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ale 2024-10-06 02:24:28 +02:00
parent cb0c4125c6
commit b746f35855

View File

@ -20,11 +20,8 @@ steps:
from_secret: pass
REGISTRY:
from_secret: registry
DOCKER_OPTS: "--insecure-registry=$REGISTRY"
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/
- docker login -u $USER -p $PASS $REGISTRY
- cd /drone/src && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f docker/Dockerfile ./LibreTranslate