CI
This commit is contained in:
parent
024bec4304
commit
0884505a18
2 changed files with 35 additions and 14 deletions
35
.woodpecker.yaml
Normal file
35
.woodpecker.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
variables:
|
||||
&maven_image maven:3.9.6-eclipse-temurin-11-alpine
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: *maven_image
|
||||
commands:
|
||||
- mvn -B clean install -DskipTests -Dmaven.test.skip
|
||||
- name: test
|
||||
image: *maven_image
|
||||
commands:
|
||||
- mvn -B -pl :mockserver-tests verify
|
||||
- name: deploy to public
|
||||
image: *maven_image
|
||||
commands:
|
||||
- mvn -B jar:jar deploy:deploy
|
||||
secrets: [reposilite_user, reposilite_token]
|
||||
when:
|
||||
- event: tag
|
||||
- name: deploy to releases
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
when:
|
||||
- event: tag
|
||||
- name: build docker image
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x
|
||||
repo: codeberg.org/${CI_REPO_OWNER}/hello
|
||||
registry: codeberg.org
|
||||
tags: latest
|
||||
username: ${CI_REPO_OWNER}
|
||||
password:
|
||||
from_secret: cb_token
|
||||
when:
|
||||
- event: tag
|
Loading…
Add table
Add a link
Reference in a new issue