Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
srct.gmu.io
Commits
0a3e0c1a
Commit
0a3e0c1a
authored
Nov 20, 2018
by
Nicholas J Anderson
Browse files
Updated CI, moving to Pages and review apps
parent
57f9ef58
Pipeline
#3389
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0a3e0c1a
image
:
ruby:2.3
stages
:
-
build
-
test
-
deploy
variables
:
JEKYLL_ENV
:
production
LC_ALL
:
C.UTF-8
before_script
:
-
ruby -v
-
bundle install --jobs 4 --path vendor
build
:
image
:
ruby:2.3
stage
:
build
cache
:
key
:
"
ruby-231"
paths
:
-
vendor/ruby
pages
:
stage
:
deploy
environment
:
name
:
production
url
:
https://srct.gmu.edu
script
:
-
cd srctweb/
-
bundle install
-
bundle exec jekyll build --trace -d '../build'
-
bundle exec jekyll build --trace -d '../public'
artifacts
:
paths
:
-
build
deploy_staging
:
image
:
alpine
stage
:
deploy
script
:
-
echo 'Deploy bot awayyy';
environment
:
name
:
staging
url
:
https://srct.gmu.io
path
:
-
public
expire_in
:
1h
only
:
-
master@srct/srct.gmu.io
tags
:
-
docker
deploy_production
:
image
:
alpine
review
:
stage
:
deploy
before_script
:
[]
cache
:
{}
script
:
-
echo "Deploy bot awayyyyy"
environment
:
name
:
production
url
:
https://srct.gmu.edu
when
:
manual
-
ls
-
pwd
-
whoami
-
ls /srv/staging
-
echo $CI_BUILD_REF_NAME
-
echo $CI_PROJECT_NAME
-
touch /tmp/gitlab-runner
except
:
master
only
:
-
master
-
branches
environment
:
name
:
review/$CI_BUILD_REF_NAME
url
:
http://$CI_BUILD_REF_NAME.$APPS_DOMAIN
on_stop
:
review_stop
variables
:
GIT_STRATEGY
:
none
tags
:
-
banks
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment