-
Notifications
You must be signed in to change notification settings - Fork 12
/
.gitlab-ci.yml
67 lines (53 loc) · 1.49 KB
/
.gitlab-ci.yml
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
57
58
59
60
61
62
63
64
65
66
67
include:
- project: 'dalibo/gitlab-templates'
file:
- 'artifacts_public_env.yml'
- 'artifacts/base.yml'
##
## V A R I A B L E S
##
variables:
# $ARTIFACTS is required by artefacts_private_env.yml
ARTIFACTS: '*'
stages:
- build
- deploy
before_script:
## Prepare for Deploy Keys
## see https://docs.gitlab.com/ee/ci/ssh_keys/README.html#ssh-keys-when-using-the-docker-executor
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
image:
# full version required for SVG conversion
name: dalibo/pandocker:stable
entrypoint: [""] # we need to override the image entrypoint
##
## B U I L D
##
pandocker:
stage: build
script:
# Limitation à faire sauter avant fusion avec la branche "master"
- make all
# FIX #197: publish the old artefacts alongside the new ones
- rsync --archive _archives/fr/* fr
artifacts:
paths:
- "*"
expire_in: '1 day'
##
## DEPLOY
##
deploy:private_env:
extends: .artifacts:deploy_private_env
# This clean up job is mandatory if you extend .artifacts:deploy_private_env
deploy:clean_up_private_env:
extends: .artifacts:clean_up_private_env
# Override the public deploy job to limit the artifacts
#public_env:
# variables:
# ARTEFACTS: "*/*.doc */*.epub */*.html */*.odt */*.pdf"
# Uncomment to force the job on this branch (for testing purpose)
#only: null