Browse Source

moved env

feature/zola
root 3 months ago
parent
commit
1a3a6ca298
  1. 21
      .drone.yml

21
.drone.yml

@ -3,16 +3,6 @@ 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'
@ -23,3 +13,14 @@ steps:
- '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
:x
Loading…
Cancel
Save