dragoon/.woodpecker.yml

80 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2022-05-01 14:25:15 -04:00
pipeline:
2022-05-03 00:13:34 -04:00
test:
image: maven:3-eclipse-temurin-17-alpine
2022-05-03 00:13:34 -04:00
commands:
- apk add lsof
2022-05-03 00:13:34 -04:00
- mvn test
2022-05-01 14:25:15 -04:00
build:
image: maven:3-eclipse-temurin-17-alpine
2022-05-01 14:25:15 -04:00
commands:
2022-05-02 23:50:35 -04:00
- mvn clean compile assembly:single
2022-05-01 14:25:15 -04:00
2022-07-17 13:32:58 -04:00
package:
image: maven:3-eclipse-temurin-17-alpine
2022-07-17 13:32:58 -04:00
commands:
- apk add rpm
- mvn clean compile package -Dmaven.test.skip
2022-07-17 13:32:58 -04:00
when:
event: tag
2022-05-01 14:25:15 -04:00
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
title: "${CI_COMMIT_TAG}"
files:
2022-07-17 13:32:58 -04:00
- target/dragoon-*.jar
- target/dragoon-*.deb
- target/rpm/dragoon/RPMS/noarch/dragoon-*.rpm
2022-05-01 14:25:15 -04:00
when:
event: tag
copy_deb_package:
image: appleboy/drone-scp
settings:
host: "repo.int.metaunix.net"
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
target: /srv/repo/apt/dragoon/
source: target/dragoon-*.deb
2023-01-25 11:38:48 -05:00
strip_components: 1
when:
event: tag
copy_rpm_package:
image: appleboy/drone-scp
settings:
host: "repo.int.metaunix.net"
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
target: /srv/repo/dnf/dragoon/
source: target/rpm/dragoon/RPMS/noarch/dragoon-*.rpm
2023-01-25 11:38:48 -05:00
strip_components: 5
when:
event: tag
update_repos:
image: appleboy/drone-ssh
settings:
host:
- repo.int.metaunix.net
username:
from_secret: repo_admin
password:
from_secret: repo_password
port: 22
command_timeout: 2m
script:
2023-01-25 11:54:31 -05:00
- sudo /home/xadmin/scripts/update_repo.sh
when:
event: tag