-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (24 loc) · 1.2 KB
/
Jenkinsfile
File metadata and controls
26 lines (24 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pipeline {
agent any
parameters {
string(name: 'TOPDOMAIN', defaultValue: params.TOPDOMAIN ?: null, description: 'Top level domain')
string(name: 'HTTP_PORT', defaultValue: params.HTTP_PORT ?: null, description: 'Port to listen on')
string(name: 'HTDOCS_DIRECTORY', defaultValue: params.HTDOCS_DIRECTORY ?: null, description: 'Directory to serve files from')
string(name: 'DEFAULT_REDIRECT_TO_TOPDOMAIN', defaultValue: params.DEFAULT_REDIRECT_TO_TOPDOMAIN ?: null, description: 'Redirect other domains to top domain')
string(name: 'REDIRECT_TO_SECURE', defaultValue: params.REDIRECT_TO_SECURE ?: null, description: 'Redirect to secure protocol')
string(name: 'IGNORE_PATHS', defaultValue: params.IGNORE_PATHS ?: null, description: 'Paths to ignore when proxying on top domain')
text(name: 'CUSTOM_CONFIG', defaultValue: params.CUSTOM_CONFIG ?: null, description: 'Custom Apache HTTPd configuration')
}
stages {
stage('Build') {
steps {
sh 'docker compose build'
}
}
stage('Deploy') {
steps {
sh 'docker compose up -d --remove-orphans'
}
}
}
}