From f2e0c860f5595bcf53338c761ad936ed506cb3a7 Mon Sep 17 00:00:00 2001 From: Korbs Studio Date: Mon, 2 Jan 2023 22:03:39 -0500 Subject: [PATCH] Add pipeline --- .gitlab-ci.yml | 13 +++++++++++++ Jenkinsfile | 21 --------------------- 2 files changed, 13 insertions(+), 21 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 Jenkinsfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..700d055 --- /dev/null +++ b/.gitlab-ci.yml @@ -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/ diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 9a1497f..0000000 --- a/Jenkinsfile +++ /dev/null @@ -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/" - } - } - } -} \ No newline at end of file