-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
36 lines (34 loc) · 1.39 KB
/
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
#!/usr/bin/env groovy
pipeline{
agent any
//Define stages for the build process
stages{
//Define the deploy stage
stage('Deploy'){
steps{
script{
docker.withRegistry('https://gt-build.hdap.gatech.edu'){
//Build and push the database image
def lmsImage = docker.build("deathdatahub:1.0", "-f ./Dockerfile .")
lmsImage.push('latest')
}
}
script{
docker.withRegistry('https://797827902844.dkr.ecr.us-east-2.amazonaws.com', 'ecr:us-east-2:open-mdi-credential'){
//Build and push the database image
def openMdiImage = docker.build("om-js-ui-gtri-death-data-hub:1.0", "-f ./Dockerfile .")
openMdiImage.push('latest')
}
}
}
}
//Define stage to notify rancher
stage('Notify'){
steps{
script{
rancher confirm: true, credentialId: 'gt-rancher-server', endpoint: 'https://gt-rancher.hdap.gatech.edu/v2-beta', environmentId: '1a7', environments: '', image: 'gt-build.hdap.gatech.edu/deathdatahub:latest', ports: '8080', service: 'MortalityReporting/DeathDataHub', timeout: 60
}
}
}
}
}