.gitlab-ci.yml 592 Bytes
Newer Older
1
deployment:
chrissi^'s avatar
chrissi^ committed
2 3 4
    stage: deploy
    only:
    - /^testbed*$/i
chrissi^'s avatar
chrissi^ committed
5
    - /^master*$/i
chrissi^'s avatar
chrissi^ committed
6 7
    script:
    - cd flamingo
chrissi^'s avatar
chrissi^ committed
8
    - echo $CI_COMMIT_REF_SLUG > REF_SLUG
chrissi^'s avatar
chrissi^ committed
9
    - make html
chrissi^'s avatar
chrissi^ committed
10 11 12 13
    - touch /var/www/$CI_COMMIT_REF_SLUG/htdocs/foo
    - rm -r /var/www/$CI_COMMIT_REF_SLUG/htdocs/*
    - cp -r output/* /var/www/$CI_COMMIT_REF_SLUG/htdocs/
    - chmod go+r -R /var/www/$CI_COMMIT_REF_SLUG/htdocs/*
chrissi^'s avatar
chrissi^ committed
14 15 16 17 18

    - touch /var/www/$CI_COMMIT_REF_SLUG/cgi/foo
    - rm -r /var/www/$CI_COMMIT_REF_SLUG/cgi/*
    - cp -r ../cgi/* /var/www/$CI_COMMIT_REF_SLUG/cgi/
    - chmod go+r -R /var/www/$CI_COMMIT_REF_SLUG/cgi/*