School_Project/.drone.yml

44 lines
837 B
YAML
Raw Normal View History

2023-03-04 18:58:14 +01:00
---
2023-03-04 13:49:40 +01:00
kind: pipeline
type: docker
2023-03-04 14:53:38 +01:00
name: Check_Requirement
2023-03-04 13:49:40 +01:00
steps:
2023-03-04 14:53:38 +01:00
- name: base_check
image: gradle:jdk11-alpine
commands:
- ./gradlew clean
2023-03-04 15:36:11 +01:00
- ./gradlew build
- ./gradlew test
2023-03-04 14:53:38 +01:00
---
kind: pipeline
type: docker
name: master_build
steps:
- name: make_archive
image: alpine:latest
volumes:
- name: archives
path: /build
2023-03-04 13:56:10 +01:00
commands:
- tar cvzf /build/$(git log -n 1 --format="%h")_school_archive.gz.tar app/ gradle/ gradlew/ gradlew.bat README.md settings.gradle
2023-03-04 15:36:11 +01:00
trigger:
- branch:
- master
event:
- include:
- push
2023-03-04 14:53:38 +01:00
volumes:
- name: archives
host:
path: /srv/drone/school_project/archive/
depends_on:
- Check_Requirement
2023-03-04 18:58:14 +01:00
---
kind: signature
hmac: 82ce5e9bc63570a5614c4e7b3ddc888fadb36f7660ab0ab521d0cda3c5842e05
...