Update build for hugo
All checks were successful
dreamfall/morgan.mcmillian.dev/pipeline/head This commit looks good

This commit is contained in:
Morgan McMillian 2023-02-12 06:17:07 -08:00
parent 78b59dc2af
commit 877b709ea9
2 changed files with 3 additions and 10 deletions

11
Jenkinsfile vendored
View file

@ -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(

View file

@ -7,5 +7,5 @@
tasks:
- name: Sync html directory
ansible.posix.synchronize:
src: public/https/
src: public/
dest: "{{ html_location }}/"