Privileged mode does not work.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mark Nellemann 2023-03-03 14:31:30 +01:00
parent b3896b4dc2
commit 68b29f7feb

View file

@ -8,30 +8,31 @@ steps:
image: eclipse-temurin:17-jdk image: eclipse-temurin:17-jdk
commands: commands:
- ./gradlew test - ./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: push
- name: docker # image: docker:dind
image: docker:dind # environment:
privileged: true # AUTH_TOKEN: # Gitea access token ENV variable
volumes: # from_secret: auth # Name of DroneCI secret exposed above
- name: dockersock # commands:
path: /var/run # - "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: #services:
- name: dockersock # - name: docker
temp: {} # image: docker:dind
# privileged: true
# volumes:
# - name: dockersock
# path: /var/run
#volumes:
# - name: dockersock
# temp: {}