From 104ecdd116b50e918c47fa8f7f9f1f2cd3286a0a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 7 Dec 2023 15:21:31 -0700 Subject: [PATCH] fix yaml --- .woodpecker.yml | 17 ++++++++--------- config.yaml | 5 ----- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4e357fb..4a7e79a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 diff --git a/config.yaml b/config.yaml index 8c7fd9e..fa3efb1 100644 --- a/config.yaml +++ b/config.yaml @@ -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