Loading .gitlab-ci.yml +32 −5 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ init: #- node #- php before_script: - export BUILD_LABEL=$(TZ=Europe/Berlin date +%Y%m%d-%H%M) - export BUILD_LABEL=$(TZ=Europe/Berlin date +%Y%m%d-%H%M-$CI_COMMIT_REF_NAME) script: # save timestamp to file - echo $BUILD_LABEL > ${BUILD_LABEL_TMPFILE} Loading Loading @@ -168,12 +168,15 @@ src-lint-javascript: - ${BUILD_TARGET} # ftp to dev host ftp-dev: deploy-dev: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: development url: https://$FTP_HOST_DEV before_script: #- no action for now... script: Loading @@ -181,24 +184,48 @@ ftp-dev: - npm run deploy # ftp to host - 'which 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 -Rev ${BUILD_TARGET}/ ./$FTP_PATH/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" - lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME_DEV,$FTP_PASSWORD_DEV $FTP_HOST_DEV; mirror -Rev ${BUILD_TARGET}/ ./$FTP_PATH_DEV/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" except: refs: - master - tags - release when: manual artifacts: paths: - ${BUILD_TARGET} # ftp to production/live host ftp-prod: deploy-staging: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: staging url: https://$FTP_HOST_TEST before_script: #- no action for now... script: # deploy files - npm run deploy # ftp to host - 'which lftp || ( apt-get update -qq && apt-get install -y -qq lftp )' - lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME_TEST,$FTP_PASSWORD_TEST $FTP_HOST_TEST; mirror -Rev ${BUILD_TARGET}/ ./$FTP_PATH_TEST/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" only: refs: - master # ftp to production/live host deploy-prod: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: production url: https://$FTP_HOST_PROD before_script: #- no action for now... script: Loading Loading
.gitlab-ci.yml +32 −5 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ init: #- node #- php before_script: - export BUILD_LABEL=$(TZ=Europe/Berlin date +%Y%m%d-%H%M) - export BUILD_LABEL=$(TZ=Europe/Berlin date +%Y%m%d-%H%M-$CI_COMMIT_REF_NAME) script: # save timestamp to file - echo $BUILD_LABEL > ${BUILD_LABEL_TMPFILE} Loading Loading @@ -168,12 +168,15 @@ src-lint-javascript: - ${BUILD_TARGET} # ftp to dev host ftp-dev: deploy-dev: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: development url: https://$FTP_HOST_DEV before_script: #- no action for now... script: Loading @@ -181,24 +184,48 @@ ftp-dev: - npm run deploy # ftp to host - 'which 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 -Rev ${BUILD_TARGET}/ ./$FTP_PATH/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" - lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME_DEV,$FTP_PASSWORD_DEV $FTP_HOST_DEV; mirror -Rev ${BUILD_TARGET}/ ./$FTP_PATH_DEV/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" except: refs: - master - tags - release when: manual artifacts: paths: - ${BUILD_TARGET} # ftp to production/live host ftp-prod: deploy-staging: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: staging url: https://$FTP_HOST_TEST before_script: #- no action for now... script: # deploy files - npm run deploy # ftp to host - 'which lftp || ( apt-get update -qq && apt-get install -y -qq lftp )' - lftp -c "set ftp:ssl-allow no; open -u $FTP_USERNAME_TEST,$FTP_PASSWORD_TEST $FTP_HOST_TEST; mirror -Rev ${BUILD_TARGET}/ ./$FTP_PATH_TEST/${BUILD_TARGET} --parallel=10 --exclude-glob .git* --exclude .git/" only: refs: - master # ftp to production/live host deploy-prod: stage: deploy tags: - kunden-web dependencies: - app-build environment: name: production url: https://$FTP_HOST_PROD before_script: #- no action for now... script: Loading