From 31a5920465b4d4a6731b740921350a4a7e14cd23 Mon Sep 17 00:00:00 2001 From: Mark Nellemann Date: Fri, 3 Mar 2023 09:50:18 +0100 Subject: [PATCH] Test drone --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..daf7f95 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,37 @@ +--- +kind: pipeline +name: default +type: docker + +steps: +- name: test + 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 + +volumes: +- name: dockersock + temp: {} \ No newline at end of file