diff --git a/.drone.yml b/.drone.yml index f6228b5..a10f30c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,13 +20,9 @@ steps: from_secret: pass REGISTRY: from_secret: registry - volumes: - - name: dockersock - path: /var/run/docker.sock - - name: usrbin - path: /usr/bin 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 - cd /drone/src && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f docker/Dockerfile ./LibreTranslate - docker push $REGISTRY/libretranslate-api @@ -34,11 +30,3 @@ steps: event: - push - tag - -volumes: -- name: dockersock - host: - path: /var/run/docker.sock -- name: usrbin - host: - path: /usr/bin