School_Project/.drone.yml
Debucquoy 207195c0c8
Some checks reported errors
continuous-integration/drone/push Build encountered an error
fixup! fixup! maybe finishing ci? hopefully
2023-03-04 15:05:17 +01:00

38 lines
709 B
YAML

kind: pipeline
type: docker
name: Check_Requirement
steps:
- name: base_check
image: gradle:jdk11-alpine
commands:
- ./gradlew clean
- ./gradlew build
- ./gradlew test
---
kind: pipeline
type: docker
name: master_build
steps:
- name: make_archive
image: alpine:latest
volumes:
- name: archives
path: /build
commands:
tar cvzf /build/$(git log -n 1 --format="%h")_school_archive.gz.tar app/ gradle/ gradlew/ gradlew.bat README.md settings.gradle
trigger:
branch:
- master
event:
include:
- push
volumes:
- name: archives
host:
path: /srv/drone/school_project/archive/
depends_on:
- Check_Requirement