-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
37 lines (35 loc) · 1.35 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
build:
stage: build
image: maven:3-eclipse-temurin-17
script:
- mvn -Dmaven.repo.local="$CI_PROJECT_DIR/maven_repo_local" -f org.eventb.texteditor.parent/pom.xml install
cache:
paths:
- maven_repo_local
artifacts:
paths:
- org.eventb.texteditor.repository/target/repository
deploy:nightly:
stage: deploy
only:
- develop@general/stups/camille
image: alpine:3
variables:
GIT_STRATEGY: none
before_script:
- apk update
- apk add lftp openssh-client
script:
- LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/camille/develop/; mirror -vvv -R --delete org.eventb.texteditor.repository/target/repository ."
deploy:release:
stage: deploy
only:
- master@general/stups/camille
image: alpine:3
variables:
GIT_STRATEGY: none
before_script:
- apk update
- apk add lftp openssh-client
script:
- LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/rodin/camille/; mkdir release-next; mirror -vvv -R org.eventb.texteditor.repository/target/repository release-next; mv release release-prev; mv release-next release"