aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 67faa30c2613eba0492d471335f1c6f17c37e109 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pipeline {
    agent any
    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('Build') { steps { sh 'bash .scripts.d/20-build.sh' } }
        stage('Test') { steps { sh 'bash .scripts.d/30-test.sh' } }
        stage('Publish') {
            environment { DOCKERHUB_TOKEN = credentials('DOCKERHUB_TOKEN') }
            steps { sh 'bash .scripts.d/40-publish.sh' }
        }
    }
}