File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- echo " Haven't implemented it."
3
+ . ./.circleci/export-env-vars.sh
4
+
5
+ curl -X POST \
6
+ " ${API_HOST} /api/networks/update-container-images" \
7
+ -H " authorization: ${NETWORK_UPDATE_ID} :${NETWORK_UPDATE_KEY} " \
8
+ -H ' cache-control: no-cache' \
9
+ -H ' content-type: application/x-www-form-urlencoded' \
10
+ -d " container=impulse&imageTag=${NODE_ENV} -${COMMIT_HASH} "
4
11
5
12
exit 0;
Original file line number Diff line number Diff line change 55
55
- run :
56
56
name : " Docker push"
57
57
command : ./.circleci/docker-push.sh
58
+ - run :
59
+ name : " Network Update"
60
+ command : ./.circleci/build-end-notification.sh
58
61
59
62
workflows :
60
63
version : 2
Original file line number Diff line number Diff line change @@ -5,14 +5,19 @@ export COMMIT_HASH=${CIRCLE_SHA1}
5
5
if [ " $CIRCLE_BRANCH " = " master" ] || [ " $CIRCLE_TAG " = " production" ];
6
6
then
7
7
export NODE_ENV=" production"
8
- elif [ " $CIRCLE_BRANCH " = " staging" ] || [ " $CIRCLE_TAG " = " staging" ] || [ " $CIRCLE_BRANCH " = " staging" ];
8
+ export API_HOST=" https://app.blockcluster.io"
9
+ elif [ " $CIRCLE_BRANCH " = " staging" ] || [ " $CIRCLE_TAG " = " staging" ];
9
10
then
10
11
export NODE_ENV=" staging"
12
+ export API_HOST=" https://staging.blockcluster.io"
11
13
elif [ " $CIRCLE_BRANCH " = " test" ] || [ " $CIRCLE_TAG " = " test" ];
12
14
then
13
15
export NODE_ENV=" test"
16
+ export API_HOST=" https://test.blockcluster.io"
14
17
else
15
18
export NODE_ENV=" dev"
19
+ export API_HOST=" https://dev.blockcluster.io"
16
20
fi
17
21
22
+
18
23
export IMAGE_NAME=' 402432300121.dkr.ecr.us-west-2.amazonaws.com/impulse'
You can’t perform that action at this time.
0 commit comments