Add pipeline
This commit is contained in:
parent
a3885ed4e4
commit
f2e0c860f5
2 changed files with 13 additions and 21 deletions
13
.gitlab-ci.yml
Normal file
13
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
stages:
|
||||
- build
|
||||
|
||||
build-job:
|
||||
stage: build
|
||||
script:
|
||||
- sudo chmod -R 777 ./
|
||||
- sudo bundle install
|
||||
- bundle exec jekyll build
|
||||
- mv ./_site/ ./blueanimates/
|
||||
- rm -R /usr/share/nginx/blueanimates/
|
||||
- cp -R ./blueanimates/ /usr/share/nginx/blueanimates/
|
||||
- rm -R ./blueanimates/
|
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -1,21 +0,0 @@
|
|||
pipeline {
|
||||
agent {
|
||||
label 'optiplex'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Update Website'){
|
||||
steps {
|
||||
sh "chmod -R 777 ./*"
|
||||
|
||||
sh "sudo bundle install"
|
||||
sh "bundle exec jekyll build"
|
||||
|
||||
sh "mv ./_site/ ./blueanimates/"
|
||||
sh "rm -R /usr/share/nginx/blueanimates/"
|
||||
sh "cp -R ./blueanimates/ /usr/share/nginx/blueanimates/"
|
||||
sh "rm -R ./blueanimates/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue