forked from rtyler/uplink
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
37 lines (32 loc) · 947 Bytes
/
Jenkinsfile
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
27
28
29
30
31
32
33
34
35
36
37
pipeline {
agent {
// 'linux' is the (legacy) label used on ci.jenkins.io for "Docker Linux AMD64" while 'linux-amd64-docker' is the label used on infra.ci.jenkins.io
label 'linux || linux-amd64-docker'
}
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '10'))
timestamps()
}
triggers {
pollSCM('H * * * *')
}
stages {
stage('Build & test') {
steps {
sh 'make migrate check'
}
post {
success {
stash name: 'build', includes: 'build/**/*'
}
}
}
stage('Container') {
steps {
buildDockerAndPublishImage('uplink', [unstash: 'build', targetplatforms: 'linux/amd64,linux/arm64', disablePublication: !infra.isInfra()])
}
}
}
}
// vim: ft=groovy