Updated CI config for Debian packaging
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
21b48b1f3c
commit
7685d2acd0
@ -9,6 +9,21 @@ pipeline:
|
|||||||
commands:
|
commands:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
|
package_setup:
|
||||||
|
image: node:18
|
||||||
|
commands:
|
||||||
|
- npm install --production
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
linux_package:
|
||||||
|
group: packaging
|
||||||
|
image: node:18
|
||||||
|
commands:
|
||||||
|
- npm run grunt package
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
gitea_release:
|
gitea_release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
@ -16,5 +31,38 @@ pipeline:
|
|||||||
from_secret: gitea_api_key
|
from_secret: gitea_api_key
|
||||||
base_url: https://git.metaunix.net
|
base_url: https://git.metaunix.net
|
||||||
title: "${CI_COMMIT_TAG}"
|
title: "${CI_COMMIT_TAG}"
|
||||||
|
files:
|
||||||
|
- "dist/*.deb"
|
||||||
|
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/overseer/
|
||||||
|
source: target/debian/overseer*.deb
|
||||||
|
strip_components: 2
|
||||||
|
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:
|
||||||
|
- "sudo ~/scripts/update_repo.sh"
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
Loading…
Reference in New Issue
Block a user