.gitlab-ci.yml 437 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1
2
variables:
  EXPORT_DIR: "/var/www/html/pages"
GitLab's avatar
GitLab committed
3

4
5
6
stages:
    - deploy
  
Wolfgang Knopki's avatar
Wolfgang Knopki committed
7
pages-master:
GitLab's avatar
GitLab committed
8
9
  stage: deploy
  script:
Matthias Betz's avatar
Matthias Betz committed
10
    - mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
Matthias Betz's avatar
Matthias Betz committed
11
    - ls -al "$EXPORT_DIR/$CI_PROJECT_NAME"
Matthias Betz's avatar
Matthias Betz committed
12
13
    - rm -rf "$EXPORT_DIR/$CI_PROJECT_NAME/.*"
    - ls -al "$EXPORT_DIR/$CI_PROJECT_NAME"
Wolfgang Knopki's avatar
Wolfgang Knopki committed
14
    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
Matthias Betz's avatar
Matthias Betz committed
15
    - ls -al "$EXPORT_DIR/$CI_PROJECT_NAME"
Wolfgang Knopki's avatar
Wolfgang Knopki committed
16
17
18
19
  tags: 
    - production
  only: 
    - master