-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathJenkinsfile
More file actions
23 lines (22 loc) · 826 Bytes
/
Jenkinsfile
File metadata and controls
23 lines (22 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
agent any
stages {
stage('Build') {
steps {
sh '''
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 352708296901.dkr.ecr.us-east-1.amazonaws.com
docker build -t dorons-bot .
docker tag dorons-bot:latest 352708296901.dkr.ecr.us-east-1.amazonaws.com/dorons-bot:latest
docker push 352708296901.dkr.ecr.us-east-1.amazonaws.com/dorons-bot:latest
'''
}
}
stage('Trigger Deploy') {
steps {
build job: 'BotDeploy', wait: false, parameters: [
string(name: 'BOT_IMAGE_NAME', value: "352708296901.dkr.ecr.us-east-1.amazonaws.com")
]
}
}
}
}