This commit is contained in:
parent
ff0f869235
commit
7e2f5477a4
16
.drone.yml
16
.drone.yml
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user