27 lines
701 B
YAML
27 lines
701 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: publish
|
|
image: docker.registry.bksp.space/common-runner
|
|
commands:
|
|
- pip install -r requirements.txt
|
|
- pelican content -t theme -s publishconf.py -o build
|
|
- echo "$${SSH_KEY}" > /tmp/key
|
|
- chmod 600 /tmp/key
|
|
- 'rsync --delete -ptrvz -c -e "ssh -o StrictHostKeyChecking=no -p $${REMOTE_PORT} -i /tmp/key" build/ $${REMOTE_USER}@$${REMOTE_HOST}:$${REMOTE_PATH}'
|
|
environment:
|
|
SSH_KEY:
|
|
from_secret: ssh_key
|
|
REMOTE_HOST:
|
|
from_secret: remote_host
|
|
REMOTE_PORT:
|
|
from_secret: remote_port
|
|
REMOTE_PATH:
|
|
from_secret: remote_path
|
|
REMOTE_USER:
|
|
from_secret: remote_user
|
|
|
|
image_pull_secrets:
|
|
- dockerconfig
|