fix yaml
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
089aa02e20
commit
104ecdd116
|
@ -4,31 +4,30 @@ pipeline:
|
|||
commands:
|
||||
- echo $REGISTRY_SECRET | apko login --username ariadne --password-stdin gitea.treehouse.systems
|
||||
- apko publish --debug --arch $(uname -m) apko.yaml gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest
|
||||
secrets: [REGISTRY_SECRET]
|
||||
|
||||
secrets:
|
||||
- REGISTRY_SECRET
|
||||
deploy:
|
||||
image: gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest
|
||||
commands:
|
||||
# build the new site
|
||||
- hugo
|
||||
|
||||
# fetch the old newswire
|
||||
- curl -s https://ariadne.space/newswire.txt > oldnewswire.txt
|
||||
|
||||
# set up the SSH deployment key and upload the site
|
||||
- |
|
||||
- |
|
||||
mkdir $HOME/.ssh
|
||||
echo "$SSH_KEY">$HOME/.ssh/id_ed25519
|
||||
echo "$SSH_KNOWN_HOSTS">$HOME/.ssh/known_hosts
|
||||
chown 600 $HOME/.ssh/id_ed25519
|
||||
rsync -avHAX public/ kaniini@ariadne.space:public/
|
||||
|
||||
# if the newswire has changed, publish the new one.
|
||||
- |
|
||||
cmp oldnewswire.txt public/newswire.txt || \
|
||||
curl -s -H "Authorization: Bearer $MASTODON_SECRET" \
|
||||
-F "status=$(cat public/newswire.txt)" \
|
||||
-F "content_type=text/markdown" \
|
||||
-F "content_type=text/markdown" \
|
||||
https://social.treehouse.systems/api/v1/statuses
|
||||
|
||||
secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET]
|
||||
secrets:
|
||||
- SSH_KEY
|
||||
- SSH_KNOWN_HOSTS
|
||||
- MASTODON_SECRET
|
||||
|
|
|
@ -2,25 +2,20 @@ baseURL: https://ariadne.space/
|
|||
languageCode: en-us
|
||||
title: Ariadne's Space
|
||||
summaryLength: 50
|
||||
|
||||
permalinks:
|
||||
blog: /:year/:month/:day/:title/
|
||||
|
||||
markup:
|
||||
highlight:
|
||||
noClasses: false
|
||||
|
||||
module:
|
||||
imports:
|
||||
- path: "github.com/kaushalmodi/hugo-atom-feed"
|
||||
|
||||
outputFormats:
|
||||
newswire:
|
||||
mediaType: "text/plain"
|
||||
baseName: "newswire"
|
||||
isPlainText: true
|
||||
notAlternative: true
|
||||
|
||||
outputs:
|
||||
home:
|
||||
- HTML
|
||||
|
|
Loading…
Reference in New Issue