My personal blog's source repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
808 B

---
kind: pipeline
type: docker
name: blog-deploy
steps:
- name: 'building the blog'
image: 'alpine:edge'
commands:
- mkdir -p $HOME/.ssh
- echo $KNOWN_HOSTS > $HOME/.ssh/known_hosts
- echo $SSH_KEY | base64 -d > $HOME/.ssh/id_ed25519
- chmod 400 $HOME/.ssh/id_ed25519
- apk add --no-cache python3 go openssh rsync imagemagick
- go install git.aphrodite.dev/ArtemisNeko/cap@latest
- ~/go/bin/cap build
- rsync -azuhP .public/ $REMOTE_HOST:$REMOTE_PATH
environment:
REMOTE_HOST:
from_secret: remote_host
REMOTE_PATH:
from_secret: remote_path
KNOWN_HOSTS:
from_secret: known_hosts
SSH_KEY:
from_secret: ssh_key