Commit d30870d9 authored by Athanasios's avatar Athanasios
Browse files

Update .gitlab-ci.yml

parent c24b2908
Pipeline #6201 passed with stages
in 10 seconds
...@@ -14,7 +14,7 @@ test-job: ...@@ -14,7 +14,7 @@ test-job:
- test -f public/main.js - test -f public/main.js
- test -f public/settings.js - test -f public/settings.js
- test -f public/assets/css/style.css - test -f public/assets/css/style.css
- test -f public/assets/css/moblie.css - test -f public/assets/css/mobile.css
- test -f public/assets/images/header.jpg - test -f public/assets/images/header.jpg
- test -f public/assets/images/hft_logo.svg - test -f public/assets/images/hft_logo.svg
- test -f public/home/index.html - test -f public/home/index.html
...@@ -25,11 +25,11 @@ test-job: ...@@ -25,11 +25,11 @@ test-job:
deploy-job: deploy-job:
stage: deploy stage: deploy
script: script:
- rm -r "$EXPORT_DIR/$CI_PROJECT_NAME" - if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi
- mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME" - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
- cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME" - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
tags: tags:
- production - docker
only: only:
- master - master
when: manual when: manual
...@@ -37,7 +37,7 @@ deploy-job: ...@@ -37,7 +37,7 @@ deploy-job:
cleanup-job: cleanup-job:
stage: cleanup stage: cleanup
script: script:
- rm -r "$EXPORT_DIR/$CI_PROJECT_NAME" - if [ -d "$EXPORT_DIR/$CI_PROJECT_NAME" ]; then rm -r "$EXPORT_DIR/$CI_PROJECT_NAME"; fi
tags: tags:
- production - docker
when: manual when: manual
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment