Browse Source

added drone yml again

feature/zola
root 3 months ago
parent
commit
359400fbf1
  1. 25
      .drone.yml

25
.drone.yml

@ -0,0 +1,25 @@
---
kind: pipeline
type: docker
name: blog-deploy
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
steps:
- name: 'building the blog'
image: 'alpine:edge'
commands:
- 'mkdir -p $HOME/.ssh'
- 'echo $KNOWN_HOSTS > $HOME/.ssh/known_hosts'
- 'echo $SSH_KEY > $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 -"'
Loading…
Cancel
Save