From 877b709ea9ae1cf377d9c2b8ae3be2c21ad919e2 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 12 Feb 2023 06:17:07 -0800 Subject: [PATCH] Update build for hugo --- Jenkinsfile | 11 ++--------- main.yaml | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 124cd19..673f432 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,10 @@ pipeline { - agent none + agent { label 'fedora' } stages { stage('Build site') { - agent { - docker { - image 'git.dreamfall.space/thrrgilag/kiln:latest' - label 'docker-build' - } - } steps { mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" - sh 'kiln build' + sh 'hugo' } post { success { @@ -22,7 +16,6 @@ pipeline { } } stage('Deploy site') { - agent { label 'docker-build' } steps { mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" ansiblePlaybook( diff --git a/main.yaml b/main.yaml index 3d0559c..6c392c7 100644 --- a/main.yaml +++ b/main.yaml @@ -7,5 +7,5 @@ tasks: - name: Sync html directory ansible.posix.synchronize: - src: public/https/ + src: public/ dest: "{{ html_location }}/"