Skip to content
Snippets Groups Projects
Verified Commit 2614c7f3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add CI config.

parent bb43cb8b
No related branches found
No related tags found
No related merge requests found
Pipeline #161 failed
image: python:3.8-buster
build:
stage: build
before_script:
- apt-get -y update && apt-get -y install make pelican
script:
- make publish
artifacts:
paths:
- output/
deploy_naturalnet:
stage: deploy
only:
- master
before_script:
- apt-get -y update && apt-get -y install rsync openssh-client
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - >/dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- rsync -avzh --delete output/* $SSH_USERNAME@$SSH_HOST:/srv/www/dominik-george.de/www.dominik-george.de/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment