Archived
Template
1
Fork 0

Add pipeline

This commit is contained in:
Korbs Studio 2023-01-02 22:03:39 -05:00
parent a3885ed4e4
commit f2e0c860f5
2 changed files with 13 additions and 21 deletions

13
.gitlab-ci.yml Normal file
View 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
View file

@ -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/"
}
}
}
}