-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
51 lines (44 loc) · 1.04 KB
/
Jenkinsfile
File metadata and controls
51 lines (44 loc) · 1.04 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@Library('jenkings') _
pipeline {
agent {
label '!docker-qemu'
}
environment {
CI = 'true'
}
stages {
stage('docker image') {
when {
branch 'master'
}
agent {
label 'docker-qemu'
}
stages {
stage('build') {
steps {
script {
sh "docker image build -t alkesst/biceater-api:${GIT_COMMIT} --pull ."
sh "docker image tag alkesst/biceater-api:${GIT_COMMIT} alkesst/biceater-api:latest"
}
}
}
stage('push') {
steps {
script {
docker.withRegistry('', 'alkesst_dockerhub') {
sh "docker image push alkesst/biceater-api:${GIT_COMMIT}"
sh "docker image push alkesst/biceater-api:latest"
}
}
}
}
stage('refresh env') {
steps {
sh 'curl -X POST https://portainer.majorcadevs.com/api/webhooks/891857aa-cc40-44f2-8173-80f580111a40'
}
}
}
}
}
}