.gitlab-ci.yml 488 Bytes
Newer Older
1
2
3
4
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
pages:
  variables:
5
    EXPORT_PAGES_DIR: "/opt/tomcat9/webapps/ROOT/"
6
7
8
9
  stage: deploy
  script:
  - echo $EXPORT_PAGES_DIR
  - mkdir .public
10
11
12
13
  - cp -r css .public
  - cp -r images .public
  - cp -r js .public
  - cp index.html .public
14
  - mv .public public
15
  - cp -r public/ "$EXPORT_PAGES_DIR"
16
17
18
19
20
21
  artifacts:
    paths:
    - public
  only:
  - master