forked from Aptomi/k8s-app-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipelines-upload.sh
executable file
·25 lines (18 loc) · 970 Bytes
/
pipelines-upload.sh
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
#!/bin/bash
REPO_URI=$1
if [[ -z $REPO_URI ]];
then
echo "Missing mandatory argument"
echo " Usage: ./pipelines-upload.sh [git-repo-URI]"
echo " Example: ./pipelines-upload.sh [email protected]:username/repo.git"
exit 1
fi
set -x
fly -t tutorial login
fly -t tutorial sync
fly -t tutorial set-pipeline -n -c twitter-analytics-git-repo/pipeline-dev-test-changes.yml -l twitter-analytics-git-repo/pipeline-params.yml -v repo=$REPO_URI -p dev-test-changes
fly -t tutorial unpause-pipeline -p dev-test-changes
fly -t tutorial set-pipeline -n -c twitter-analytics-git-repo/pipeline-apply-rules.yml -l twitter-analytics-git-repo/pipeline-params.yml -v repo=$REPO_URI -p apply-rules
fly -t tutorial unpause-pipeline -p apply-rules
fly -t tutorial set-pipeline -n -c twitter-analytics-git-repo/pipeline-update-prod.yml -l twitter-analytics-git-repo/pipeline-params.yml -v repo=$REPO_URI -p update-prod
fly -t tutorial unpause-pipeline -p update-prod