From 7e2f5477a42f029e7570c360e650db66d062e431 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 6 Oct 2024 00:45:33 +0200 Subject: [PATCH] .drone.yml --- .drone.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) 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