Skip to content
Snippets Groups Projects
Commit 607418d1 authored by chrissi^'s avatar chrissi^
Browse files

Merge branch 'testbed' into 'testbed'

Separated building and deploying in the Gitlab CI

See merge request !4
parents fd350a8e 322777e5
No related branches found
No related tags found
No related merge requests found
deployment:
stage: deploy
only:
- /^testbed*$/i
- /^master*$/i
build:
stage: build
image: python:3
tags:
- docker
script:
- cd flamingo
- echo $CI_COMMIT_REF_SLUG > REF_SLUG
- make html
- 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/
artifacts:
paths:
- flamingo/output
expire_in: 1 week
deployment:
stage: deploy
tags:
- ffbs-deploy
only:
refs:
- master
- /^testbed/i
variables:
- $CI_PROJECT_PATH == "ffbs/ffbs-website"
script:
- rm -r /var/www/$CI_COMMIT_REF_SLUG/htdocs
- cp -r flamingo/output /var/www/$CI_COMMIT_REF_SLUG/htdocs
- chmod go+r -R /var/www/$CI_COMMIT_REF_SLUG/htdocs/*
- 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/
- 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/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment