Skip to content

Commit 723b75c

Browse files
authored
Merge pull request #602 from cmu-delphi/fix-staging-api-deploy
Update Jenkinsfile, add shell wrapper for Ansible playbook
2 parents df6e13b + ff005e8 commit 723b75c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pipeline {
4545
}
4646
parallel deploy_staging
4747
}
48-
sh "jenkins/ansible-deploy-staging-api-proxy-match-list"
48+
sh "jenkins/deploy-staging-api-match-list.sh"
4949
}
5050
}
5151
stage('Deploy production') {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Jenkins deploy staging api match list
4+
#
5+
6+
set -eo pipefail
7+
source ~/.bash_profile
8+
9+
#
10+
# Deploy
11+
#
12+
13+
cd "${WORKSPACE}/ansible" || exit
14+
15+
# Ansible!
16+
ansible-playbook ansible-deploy-staging-api-proxy-match-list.yaml -i inventory

0 commit comments

Comments
 (0)