Skip to content
Snippets Groups Projects

Add auto-deploy

Merged rinpatch requested to merge feature/ci-autodeploy into master
1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
.gitlab-ci.yml 0 → 100644
+ 16
0
stages:
- deploy
deploy:
stage: deploy
image: alpine:3.9
only:
- master@pleroma/pleroma.social
before_script:
- apk update && apk add openssh-client rsync
script:
- mkdir -p ~/.ssh
- echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" ./ "${SSH_USER_HOST_LOCATION}"
Loading