|
|
|
@ -18,7 +18,41 @@ name: maven
|
|
|
|
|
steps:
|
|
|
|
|
- name: test
|
|
|
|
|
image: maven:3.9.4-eclipse-temurin-17-alpine
|
|
|
|
|
volumes:
|
|
|
|
|
- name: package_cache
|
|
|
|
|
path: /root/.m2/
|
|
|
|
|
commands:
|
|
|
|
|
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
|
|
|
|
- mvn test -B
|
|
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
|
image: maven:3.9.4-eclipse-temurin-17-alpine
|
|
|
|
|
volumes:
|
|
|
|
|
- name: package_cache
|
|
|
|
|
path: /root/.m2/
|
|
|
|
|
commands:
|
|
|
|
|
- mvn package -Dmaven.test.skip=true
|
|
|
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
|
image: plugins/gitea-release
|
|
|
|
|
settings:
|
|
|
|
|
api_key:
|
|
|
|
|
from_secret: API_KEY
|
|
|
|
|
base_url:
|
|
|
|
|
from_secret: BASE_URL
|
|
|
|
|
files:
|
|
|
|
|
- target/*.jar
|
|
|
|
|
checksum:
|
|
|
|
|
- md5
|
|
|
|
|
- sha1
|
|
|
|
|
- sha256
|
|
|
|
|
- sha512
|
|
|
|
|
- adler32
|
|
|
|
|
- crc32
|
|
|
|
|
when:
|
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: package_cache
|
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
|
|