updated pipeline
All checks were successful
ci/woodpecker/push/deploy-rsync Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2024-07-15 10:51:05 +02:00
parent 17406aad2a
commit 0c92e07866
Signed by: adoralaura
SSH key fingerprint: SHA256:3XrkbR8ikAZJVtYfaUliX1MhmJYVAe/ocIb/MiDHBJ8

View file

@ -1,12 +1,13 @@
when:
- event: push
branch: [main, staging]
steps: steps:
build: build:
image: golang:1.22-bookworm image: golang:1.22-bookworm
environment: environment:
- HUGO_VERSION=0.128.2 - HUGO_VERSION=0.128.2
- TZ=Europe/Berlin - TZ=Europe/Berlin
when:
- event: push
branch: [main, staging]
commands: commands:
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb - wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb
- hugo --minify --destination ./public - hugo --minify --destination ./public
@ -23,7 +24,6 @@ steps:
- TARGET_PATH=/webroot/adora.codes - TARGET_PATH=/webroot/adora.codes
- RSYNC_TARGET_PORT=2003 - RSYNC_TARGET_PORT=2003
commands: commands:
- cd docs/
- apk add --update --no-cache openssh rsync git - apk add --update --no-cache openssh rsync git
- mkdir -p $HOME/.ssh - mkdir -p $HOME/.ssh
- echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519 - echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519
@ -43,7 +43,6 @@ steps:
- TARGET_PATH=/webroot/www-staging.adora.codes - TARGET_PATH=/webroot/www-staging.adora.codes
- RSYNC_TARGET_PORT=2003 - RSYNC_TARGET_PORT=2003
commands: commands:
- cd docs/
- apk add --update --no-cache openssh rsync git - apk add --update --no-cache openssh rsync git
- mkdir -p $HOME/.ssh - mkdir -p $HOME/.ssh
- echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519 - echo "$RSYNC_SSHKEY" > $HOME/.ssh/id_ed25519