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

This commit is contained in:
ale 2024-10-06 00:45:33 +02:00
parent ff0f869235
commit 7e2f5477a4

View File

@ -20,13 +20,9 @@ steps:
from_secret: pass from_secret: pass
REGISTRY: REGISTRY:
from_secret: registry from_secret: registry
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: usrbin
path: /usr/bin
commands: commands:
- /usr/bin/git clone --recursive https://git.manalejandro.com/ale/libretranslate-api /drone/src/ - apk update && apk fix --reinstall git
- 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
- docker push $REGISTRY/libretranslate-api - docker push $REGISTRY/libretranslate-api
@ -34,11 +30,3 @@ steps:
event: event:
- push - push
- tag - tag
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: usrbin
host:
path: /usr/bin