.gitlab-ci.yml 604 Bytes
Newer Older
chrissi^'s avatar
chrissi^ committed
1 2 3 4
testbed:
    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 10
    - make env
    - make html
chrissi^'s avatar
chrissi^ committed
11 12 13 14
    - 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
15 16 17 18 19

    - 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/*