ci: rsync dist/ over to the live server
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
this is a quick&dirty solution to update the live server whenever a git tag on master matching v* pattern is pushed. a longer term permanent idea is to use a nostr relay to push notifications about new releases.pull/13/head
parent
6b72fb8205
commit
5de7d8c485
|
@ -24,3 +24,13 @@ pipeline:
|
|||
base_url: https://git.qcode.ch
|
||||
files: nostrweb.tar.gz
|
||||
note: "automated release by ${CI_SYSTEM_HOST} \nbuild id: ${CI_BUILD_NUMBER}"
|
||||
rsync_dist:
|
||||
when:
|
||||
branch: master
|
||||
event: tag
|
||||
tag: v*
|
||||
image: alpine:3.16.2
|
||||
secrets: [releaser_ssh_key]
|
||||
commands:
|
||||
- apk add --no-cache --quiet openssh-client rsync
|
||||
- tools/ci-rsync-release.sh
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
printenv RELEASER_SSH_KEY > .sshkey
|
||||
chmod 0600 .sshkey
|
||||
sshcmd='ssh -i .sshkey -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
|
||||
exec rsync -vrz -e "$sshcmd" dist/* nostrreleaser@nostr.ch:/var/www/nostr/
|
Loading…
Reference in New Issue