School_Project/.drone.yml
Debucquoy Anthony 8749c23333
All checks were successful
continuous-integration/drone/push Build is passing
File Parser for levels (#18)
Co-authored-by: Debucquoy Anthony (tonitch) <debucquoy.anthony@gmail.com>
Reviewed-on: #18
Reviewed-by: Mat_02 <diletomatteo@gmail.com>
2023-04-21 20:00:15 +02:00

50 lines
952 B
YAML

---
kind: pipeline
type: docker
name: Check_Requirement
steps:
- name: base_check
image: gradle:jdk19-alpine
commands:
- ./gradlew clean
- ./gradlew build
- ./gradlew test
- name: syntax_check
image: gradle:jdk19-alpine
commands:
- ./gradlew check
---
kind: pipeline
type: docker
name: master_build
steps:
- name: make_archive
image: alpine:latest
volumes:
- name: archives
path: /build
commands:
- apk add --no-cache git
- tar cvzf /build/$(git log -n 1 --format="%h")_school_archive.gz.tar app/ gradle/ gradlew/ gradlew.bat README.md settings.gradle
when:
branch:
- master
event:
exclude:
- pull_request
volumes:
- name: archives
host:
path: /srv/drone/school_project/archive/
depends_on:
- Check_Requirement
---
kind: signature
hmac: f7588a8f835401820f6f596cad344ab01794dc0abcf9f81c989c625844ab4cc3
...