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
623 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 janet bash openssh
- ./blog.sh
- 'tar czf - www.aphrodite.dev | ssh $REMOTE_HOST "cd $REMOTE_PATH && tar mxzf -"'
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