Updated woodpecker config for pushing to Linux package repos
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Gregory Ballantine 2022-10-26 16:25:35 -04:00
parent 8bca6b3b0b
commit d836e27305

View File

@ -42,6 +42,7 @@ pipeline:
port: 22 port: 22
target: "/srv/repo/apt/" target: "/srv/repo/apt/"
source: "target/debian/zealot*.deb" source: "target/debian/zealot*.deb"
strip_components: 2
when: when:
event: tag event: tag
@ -56,5 +57,20 @@ pipeline:
port: 22 port: 22
target: "/srv/repo/dnf/" target: "/srv/repo/dnf/"
source: "target/generate-rpm/zealot*.rpm" source: "target/generate-rpm/zealot*.rpm"
strip_components: 2
when: when:
event: tag 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:
- "/home/xadmin/scripts/update_repo.sh"