Try to fix yaml
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Mark Nellemann 2023-03-03 14:12:47 +01:00
parent a0d1aa4e54
commit b97bac7c30

View file

@ -4,34 +4,34 @@ name: default
type: docker type: docker
steps: steps:
- name: test - name: test
image: eclipse-temurin:17-jdk image: eclipse-temurin:17-jdk
commands: commands:
- ./gradlew test - ./gradlew test
- name: push - name: push
image: docker:dind image: docker:dind
environment: environment:
AUTH_TOKEN: # Gitea access token ENV variable AUTH_TOKEN: # Gitea access token ENV variable
from_secret: auth # Name of DroneCI secret exposed above from_secret: auth # Name of DroneCI secret exposed above
commands: commands:
- sleep 5 - sleep 5
- docker ps -a - docker ps -a
- docker build -t git.data.coop/${DRONE_REPO_NAME}:${DRONE_TAG} . - 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 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 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 - docker push git.data.coop/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}:latest
when: when:
event: event:
- tag - tag
services: services:
- name: docker - name: docker
image: docker:dind image: docker:dind
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
volumes: volumes:
- name: dockersock - name: dockersock
temp: {} temp: {}