konogonka/.woodpecker/woodpecker.yml

21 lines
457 B
YAML
Raw Permalink Normal View History

2022-07-18 23:08:25 +03:00
steps:
- name: test
2024-11-21 00:55:12 +03:00
when:
event: [tag, push]
2022-07-18 23:08:25 +03:00
image: maven:3-jdk-11
commands:
- mvn -B -DskipTests clean package
2022-07-18 23:14:51 +03:00
- mvn test -B
2022-07-18 23:08:25 +03:00
volumes:
2024-11-21 00:55:12 +03:00
- /home/docker/woodpecker/files/m2:/root/.m2
2022-07-18 23:08:25 +03:00
- name: archive-artifact
2024-11-21 00:55:12 +03:00
when:
event: [tag, push]
2022-07-18 23:08:25 +03:00
image: alpine:latest
commands:
- mkdir -p /builds/konogonka
- cp target/konogonka-*jar /builds/konogonka/
volumes:
2024-11-21 00:55:12 +03:00
- /home/www/builds:/builds