fix yaml
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Ariadne Conill 2023-12-07 15:21:31 -07:00
parent 089aa02e20
commit 104ecdd116
2 changed files with 8 additions and 14 deletions

View File

@ -4,31 +4,30 @@ pipeline:
commands: commands:
- echo $REGISTRY_SECRET | apko login --username ariadne --password-stdin gitea.treehouse.systems - 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 - apko publish --debug --arch $(uname -m) apko.yaml gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest
secrets: [REGISTRY_SECRET] secrets:
- REGISTRY_SECRET
deploy: deploy:
image: gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest image: gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest
commands: commands:
# build the new site # build the new site
- hugo - hugo
# fetch the old newswire # fetch the old newswire
- curl -s https://ariadne.space/newswire.txt > oldnewswire.txt - curl -s https://ariadne.space/newswire.txt > oldnewswire.txt
# set up the SSH deployment key and upload the site # set up the SSH deployment key and upload the site
- | - |
mkdir $HOME/.ssh mkdir $HOME/.ssh
echo "$SSH_KEY">$HOME/.ssh/id_ed25519 echo "$SSH_KEY">$HOME/.ssh/id_ed25519
echo "$SSH_KNOWN_HOSTS">$HOME/.ssh/known_hosts echo "$SSH_KNOWN_HOSTS">$HOME/.ssh/known_hosts
chown 600 $HOME/.ssh/id_ed25519 chown 600 $HOME/.ssh/id_ed25519
rsync -avHAX public/ kaniini@ariadne.space:public/ rsync -avHAX public/ kaniini@ariadne.space:public/
# if the newswire has changed, publish the new one. # if the newswire has changed, publish the new one.
- | - |
cmp oldnewswire.txt public/newswire.txt || \ cmp oldnewswire.txt public/newswire.txt || \
curl -s -H "Authorization: Bearer $MASTODON_SECRET" \ curl -s -H "Authorization: Bearer $MASTODON_SECRET" \
-F "status=$(cat public/newswire.txt)" \ -F "status=$(cat public/newswire.txt)" \
-F "content_type=text/markdown" \ -F "content_type=text/markdown" \
https://social.treehouse.systems/api/v1/statuses https://social.treehouse.systems/api/v1/statuses
secrets:
secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET] - SSH_KEY
- SSH_KNOWN_HOSTS
- MASTODON_SECRET

View File

@ -2,25 +2,20 @@ baseURL: https://ariadne.space/
languageCode: en-us languageCode: en-us
title: Ariadne's Space title: Ariadne's Space
summaryLength: 50 summaryLength: 50
permalinks: permalinks:
blog: /:year/:month/:day/:title/ blog: /:year/:month/:day/:title/
markup: markup:
highlight: highlight:
noClasses: false noClasses: false
module: module:
imports: imports:
- path: "github.com/kaushalmodi/hugo-atom-feed" - path: "github.com/kaushalmodi/hugo-atom-feed"
outputFormats: outputFormats:
newswire: newswire:
mediaType: "text/plain" mediaType: "text/plain"
baseName: "newswire" baseName: "newswire"
isPlainText: true isPlainText: true
notAlternative: true notAlternative: true
outputs: outputs:
home: home:
- HTML - HTML