forked from iit-DLSLab/hyq-description_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (31 loc) · 1.02 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
# External
#include: 'http://server-dev/.amazing-script.yml'
# Within the repository
#include: "/templates/.amazing-script.yml"
stages:
- preamble
- deploy
# WARNING: Remember to change the TAG based on the branch: master -> stable, develop -> latest, any-other-branch -> latest
variables:
TAG: stable
VERSION_BASED_ON_GIT_TAG: "true"
before_script:
- source /root/dls_gitlab_ci/gitlab-script.sh
preamble:
image: server-dev:5000/dls-dev:$TAG
stage: preamble
script:
- source /root/dls_gitlab_ci/gitlab-preamble.sh
artifacts:
paths:
- version
- release
deploy:
image: server-dev:5000/dls-dev:$TAG
stage: deploy
script:
- source /root/dls_gitlab_ci/gitlab-deployment.sh
- curl -X POST -F token=$DLS_DISTRO_TOKEN -F ref=$CI_COMMIT_REF_NAME -F variables[SUBMODULE_COMMIT_MSG]="$CI_COMMIT_MESSAGE" -F variables[SUBMODULE_COMMIT_SHA]=$CI_COMMIT_SHA -F variables[SUBMODULE]=$CI_PROJECT_NAME https://gitlab.advr.iit.it/api/v4/projects/43/trigger/pipeline
only:
- master
- develop