added new gitlab CI file and saved original one
This commit is contained in:
@ -1,26 +1,49 @@
|
|||||||
image: ruby:2.3
|
stages:
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
image: alpine:latest
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
|
|
||||||
test:
|
before_script:
|
||||||
stage: test
|
- apk list -I
|
||||||
script:
|
- >
|
||||||
- sh ./var/build.sh
|
apk --no-cache add libatomic readline readline-dev libxml2 libxml2-dev
|
||||||
- bundle exec jekyll build -d test
|
ncurses-terminfo-base ncurses-terminfo
|
||||||
artifacts:
|
libxslt libxslt-dev zlib-dev zlib
|
||||||
paths:
|
ruby ruby-dev yaml yaml-dev
|
||||||
- test
|
libffi-dev build-base git nodejs
|
||||||
except:
|
- gem install bundler --no-document
|
||||||
- master
|
- pwd
|
||||||
|
- ls -l
|
||||||
|
- bundle install
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# this defines the job (for gitlab-pages it has the special name "pages")
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- sh ./var/build.sh
|
- pwd
|
||||||
- bundle exec jekyll build -d public
|
- ls -l
|
||||||
|
- sh ./var/build.sh
|
||||||
|
- bundle exec jekyll --version
|
||||||
|
- bundle exec jekyll build -d public
|
||||||
|
|
||||||
|
# defines what is produced by the scripts (the "artifacts")
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
|
# the tags define which runners (builders) will be selected. A
|
||||||
|
# suitable runner must have an identical tag
|
||||||
|
tags:
|
||||||
|
- shared
|
||||||
|
- gitlab-pages
|
||||||
|
- docker
|
||||||
|
|
||||||
|
# the "pages" job is only to be run for the master branch
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
26
.gitlab-ci.yml.orig
Normal file
26
.gitlab-ci.yml.orig
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
image: ruby:2.3
|
||||||
|
|
||||||
|
variables:
|
||||||
|
JEKYLL_ENV: production
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- sh ./var/build.sh
|
||||||
|
- bundle exec jekyll build -d test
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- test
|
||||||
|
except:
|
||||||
|
- master
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- sh ./var/build.sh
|
||||||
|
- bundle exec jekyll build -d public
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
Reference in New Issue
Block a user