Skip to content
Snippets Groups Projects
Commit f84f5daf authored by Radek Ošlejšek's avatar Radek Ošlejšek
Browse files

Update .gitlab-ci.yml

parent 4675fd47
No related branches found
No related tags found
No related merge requests found
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
variables: variables:
LANG: C.UTF-8 LANG: C.UTF-8
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
PROJECT_ARTIFACT_ID: FIDENTIS-Anlayst-app-2.0
# FTP_* variables are defined in the CI condiguration of the gitlab. # FTP_* variables are defined in the CI condiguration of the gitlab.
stages: stages:
- build - build
- tests - tests
- ftp_deploy - publish
build: build:
stage: build stage: build
...@@ -19,7 +20,7 @@ build: ...@@ -19,7 +20,7 @@ build:
- shared-fi - shared-fi
artifacts: artifacts:
paths: paths:
- application/target/* - application/target/$FIDENTIS-Anlayst-app-2.0.zip
expire_in: 1 hour expire_in: 1 hour
when: on_success when: on_success
...@@ -31,12 +32,12 @@ tests: ...@@ -31,12 +32,12 @@ tests:
tags: tags:
- shared-fi - shared-fi
ftp_deploy: publish:
stage: ftp_deploy stage: publish
image: ubuntu:latest image: ubuntu:latest
script: script:
- apt-get update -qq && apt-get install -y -qq lftp - apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rnev $CI_PROJECT_DIR ./$FTP_TARGET_DIR --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" - lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rnev $CI_PROJECT_DIR/application/target/FIDENTIS-Anlayst-app-2.0.zip ./$FTP_TARGET_DIR --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
- echo $FTP_HOST $FTP_USERNAME $FTP_PASSWORD $FTP_TARGET_DIR $CI_PROJECT_DIR - echo $FTP_HOST $FTP_USERNAME $FTP_PASSWORD $FTP_TARGET_DIR $CI_PROJECT_DIR
tags: tags:
- shared-fi - shared-fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment