Test drone
This commit is contained in:
parent
b6f9275218
commit
31a5920465
37
.drone.yml
Normal file
37
.drone.yml
Normal file
|
@ -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: {}
|
Loading…
Reference in a new issue