Compare commits
2 Commits
0604a8f8a3
...
3dca68a6e0
Author | SHA1 | Date | |
---|---|---|---|
3dca68a6e0 | |||
75703af004 |
1
.frontmatter/database/pinnedItemsDb.json
Normal file
1
.frontmatter/database/pinnedItemsDb.json
Normal file
@ -0,0 +1 @@
|
||||
{}
|
24
.woodpecker/deploy.yml
Normal file
24
.woodpecker/deploy.yml
Normal file
@ -0,0 +1,24 @@
|
||||
steps:
|
||||
clone:
|
||||
image: klakegg/hugo:ext-debian-ci
|
||||
commands:
|
||||
- git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
|
||||
- hugo
|
||||
|
||||
deploy:
|
||||
image: codingkoopa/git-rsync-openssh
|
||||
commands:
|
||||
- echo "nameserver 1.1.1.1" > /etc/resolv.conf
|
||||
- mkdir ~/.ssh && chmod -R 700 ~/.ssh
|
||||
# - apt update -y && apt install openssh-client rsync -y
|
||||
- echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
|
||||
- echo -e '#!/bin/sh\necho "$SSH_PASSPHRASE"' | tr -d '\r' > ~/.ssh/.print_ssh_password
|
||||
# - cat ~/.ssh/.print_ssh_password
|
||||
- chmod 700 ~/.ssh/.print_ssh_password
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' | DISPLAY=":0.0" SSH_ASKPASS=~/.ssh/.print_ssh_password setsid ssh-add -
|
||||
- rsync -atv --delete --progress public/ andrew@andrewnw.xyz:/home/andrew/andrewnw.xyz/
|
||||
secrets: [ ssh_host_key, ssh_deploy_key, ssh_passphrase ]
|
||||
|
||||
|
||||
branches: master
|
@ -1 +1 @@
|
||||
Subproject commit 40eeed8256284ef5a7481ae35d565de5895e6f99
|
||||
Subproject commit d6e906b37767e966214fbbee501b7654ca30957d
|
Loading…
Reference in New Issue
Block a user