variables:
EXPORT_DIR: "/var/www/html/pages"
stages:
- test
- deploy
pages-test:
stage: test
script:
- (! grep 'projektname= ""' public/settings.js)
- (! grep 'projektseitenlink= ""' public/settings.js)
- (! grep 'Max Mustermann' public/kontakt.html)
pages-master:
stage: deploy
script:
- mkdir "$EXPORT_DIR/$CI_PROJECT_NAME"
- cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
tags:
- production
only:
- master