Initial commit
This commit is contained in:
40
.drone.yml
Normal file
40
.drone.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: eclipse-temurin:21-jdk
|
||||
commands:
|
||||
- chmod +x gradlew
|
||||
- ./gradlew build --no-daemon
|
||||
|
||||
- name: publish
|
||||
image: eclipse-temurin:21-jdk
|
||||
commands:
|
||||
- mkdir -p artifacts
|
||||
- cp build/libs/*.jar artifacts/
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: upload-artifacts
|
||||
image: plugins/s3
|
||||
settings:
|
||||
bucket: cheat-builds
|
||||
access_key:
|
||||
from_secret: s3_access_key
|
||||
secret_key:
|
||||
from_secret: s3_secret_key
|
||||
source: artifacts/*.jar
|
||||
target: /builds/${DRONE_BUILD_NUMBER}/
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
Reference in New Issue
Block a user