2022-05-01 14:25:15 -04:00
|
|
|
pipeline:
|
2022-05-03 00:13:34 -04:00
|
|
|
test:
|
2023-01-24 23:18:33 -05:00
|
|
|
image: maven:3-eclipse-temurin-17-alpine
|
2022-05-03 00:13:34 -04:00
|
|
|
commands:
|
2023-01-24 23:18:33 -05:00
|
|
|
- apk add lsof
|
2022-05-03 00:13:34 -04:00
|
|
|
- mvn test
|
|
|
|
|
2022-05-01 14:25:15 -04:00
|
|
|
build:
|
2023-01-24 23:18:33 -05:00
|
|
|
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:
|
2023-01-24 23:18:33 -05:00
|
|
|
image: maven:3-eclipse-temurin-17-alpine
|
2022-07-17 13:32:58 -04:00
|
|
|
commands:
|
2023-01-24 23:18:33 -05:00
|
|
|
- apk add rpm
|
2022-07-17 14:14:55 -04:00
|
|
|
- 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
|
2023-01-25 11:08:38 -05:00
|
|
|
|
|
|
|
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
|
2023-01-25 11:08:38 -05:00
|
|
|
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
|
2023-01-25 11:08:38 -05:00
|
|
|
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
|
2023-01-25 11:08:38 -05:00
|
|
|
when:
|
|
|
|
event: tag
|