variables: EXPORT_DIR: "/var/www/html/pages" pages-master: stage: deploy script:
- mkdir -p "$EXPORT_DIR/$CI_PROJECT_NAME"
- rsync -av * "$EXPORT_DIR/$CI_PROJECT_NAME" --exclude .git --exclude .gitlab-ci.yml
tags: - production only: - master