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 { pipeline {
agent none agent { label 'fedora' }
stages { stages {
stage('Build site') { stage('Build site') {
agent {
docker {
image 'git.dreamfall.space/thrrgilag/kiln:latest'
label 'docker-build'
}
}
steps { steps {
mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" mattermostSend "Site build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
sh 'kiln build' sh 'hugo'
} }
post { post {
success { success {
@ -22,7 +16,6 @@ pipeline {
} }
} }
stage('Deploy site') { stage('Deploy site') {
agent { label 'docker-build' }
steps { steps {
mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)" mattermostSend "Site deploy started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
ansiblePlaybook( ansiblePlaybook(

View file

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