Updated CI config for Debian packaging
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2022-11-04 09:17:13 -04:00
parent 21b48b1f3c
commit 7685d2acd0

View File

@ -9,6 +9,21 @@ pipeline:
commands:
- 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:
image: plugins/gitea-release
settings:
@ -16,5 +31,38 @@ pipeline:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
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:
event: tag