Joplin/Jenkinsfile
Adam Outler d0101a4e77
All checks were successful
Updates/Joplin/pipeline/head This commit looks good
Update Jenkinsfile
2025-04-01 22:25:04 +00:00

23 lines
723 B
Groovy

pipeline {
agent { label 'Wrangler1' }
environment {
PROJECT_NAME = 'joplin'
}
stages {
stage('Pull Docker Images') {
steps {
sh 'docker compose pull'
}
}
stage('Deploy') {
steps {
withCredentials([usernamePassword(credentialsId: 'google-email-apps-password', passwordVariable: 'GMAIL_APP_PASSWORD', usernameVariable: 'GMAIL_EMAIL')]) {
sh """
GMAIL_APP_PASSWORD="${GMAIL_APP_PASSWORD}" GMAIL_EMAIL=${GMAIL_EMAIL} COMPOSE_PROJECT_NAME=${PROJECT_NAME} docker compose up -d --force-recreate
"""
}
}
}
}
}