blob: 022ba595d05de06112db0e42d0c2f92dd79f600f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
image: vorakl/alpine-pelican
stages:
- build
- deploy
stage_build:
stage: build
artifacts:
paths:
- output/
script:
- pelican -v
stage_deploy:
stage: deploy
only:
- master
dependencies:
- stage_build
script:
- apk update
- apk add rsync openssh
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add <(echo "$DEPLOY_KEY")
- rsync -Pvr output/ "$DEPLOY_TARGET"
|