-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitlab-ci.yml-bak
executable file
·56 lines (52 loc) · 1.05 KB
/
gitlab-ci.yml-bak
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
stages:
- build
# - test
- deploy
image: ruby:2.6
cache:
paths:
- vendor/
build_env:
stage: build
before_script:
- gem install bundler
- bundle install
script:
- jekyll build
artifacts:
paths:
- _site
only:
- master
tags:
- ruby-stagging
# Dimatikan agar lebih cepat
#testing:
# image: vishnu667/htmlproofer
# stage: test
# script:
# - htmlproofer ./_site --disable-external
#- docker run -v $PWD/_site:/site mtlynch/htmlproofer /site
# dependencies:
# - build_env
# only:
# - master
# allow_failure: true
# tags:
# - alpine
start_deploy:
stage: deploy
image: alpine:3.11
cache: {}
before_script:
- apk add --no-cache openssh-client ca-certificates bash rsync
- eval $(ssh-agent -s)
- /bin/bash -c 'ssh-add <(echo "$PRIVKEY")'
script:
- scp -r -o StrictHostKeyChecking=no _site $DEPLOY_USER@$DEPLOY_HOST:/var/www/workspace
dependencies:
- build_env
only:
- master
tags:
- alpine-stagging