From 68b29f7feb8da89b26c7dd9f8fb50f64d12bf94a Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Fri, 3 Mar 2023 14:31:30 +0100 Subject: [PATCH] Privileged mode does not work. --- .drone.yml | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3c8bf82..97c3c2a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,30 +8,31 @@ steps: image: eclipse-temurin:17-jdk commands: - ./gradlew test - - name: push - image: docker:dind - environment: - AUTH_TOKEN: # Gitea access token ENV variable - from_secret: auth # Name of DroneCI secret exposed above - commands: - - "sleep 5" - - "docker ps -a" - - "docker build -t git.data.coop/${DRONE_REPO_NAME}:${DRONE_TAG} ." - - "docker push git.data.coop/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:${DRONE_TAG}" - - "docker tag git.data.coop/${DRONE_REPO_NAME}:${DRONE_TAG} git.data.coop/${DRONE_REPO_NAME}:latest" - - "docker push git.data.coop/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:latest" - when: - event: - - tag -services: - - name: docker - image: docker:dind - privileged: true - volumes: - - name: dockersock - path: /var/run +# - name: push +# image: docker:dind +# environment: +# AUTH_TOKEN: # Gitea access token ENV variable +# from_secret: auth # Name of DroneCI secret exposed above +# commands: +# - "sleep 5" +# - "docker ps -a" +# - "docker build -t git.data.coop/${DRONE_REPO_NAME}:${DRONE_TAG} ." +# - "docker push git.data.coop/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:${DRONE_TAG}" +# - "docker tag git.data.coop/${DRONE_REPO_NAME}:${DRONE_TAG} git.data.coop/${DRONE_REPO_NAME}:latest" +# - "docker push git.data.coop/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:latest" +# when: +# event: +# - tag -volumes: - - name: dockersock - temp: {} +#services: +# - name: docker +# image: docker:dind +# privileged: true +# volumes: +# - name: dockersock +# path: /var/run + +#volumes: +# - name: dockersock +# temp: {}