aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..861d020
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,29 @@
+String cronString = BRANCH_NAME == 'master' ? '@weekly' : ''
+
+pipeline {
+ agent any
+ triggers { cron(cronString) }
+ options { ansiColor('xterm') }
+ stages {
+ stage('Check') {
+ agent {
+ docker {
+ image 'ghcr.io/super-linter/super-linter:latest'
+ args '--entrypoint ""'
+ }
+ }
+ steps { sh 'bash .scripts.d/10-check.sh' }
+ }
+ stage('Publish') {
+ environment { DOCKERHUB_TOKEN = credentials('DOCKERHUB_TOKEN') }
+ parallel {
+ stage('stable') {
+ steps { sh 'bash .scripts.d/20-publish.sh stable' }
+ }
+ stage('nightly') {
+ steps { sh 'bash .scripts.d/20-publish.sh nightly' }
+ }
+ }
+ }
+ }
+}