39 lines
774 B
YAML
39 lines
774 B
YAML
pipeline:
|
|
build:
|
|
image: "eclipse-temurin:16-jdk"
|
|
commands:
|
|
- "./gradlew assemble"
|
|
test:
|
|
image: "eclipse-temurin:16-jdk"
|
|
commands:
|
|
- "./gradlew test"
|
|
release:
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: "gitea_api_key"
|
|
base_url:
|
|
from_secret: "gitea_base_url"
|
|
files: build/libs/CSharpCommentChecker-*.jar
|
|
when:
|
|
event:
|
|
- tag
|
|
docker:
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: "docker_username"
|
|
password:
|
|
from_secret: "docker_password"
|
|
registry:
|
|
from_secret: "docker_registry"
|
|
repo:
|
|
from_secret: "docker_repo"
|
|
tags: latest
|
|
auto_tag: true
|
|
when:
|
|
event:
|
|
- tag
|
|
|
|
|