This commit is contained in:
parent
17406aad2a
commit
0c92e07866
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue