File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ jobs:
17
17
- run : set +o pipefail docker load -i /caches/app.tar | true
18
18
19
19
# Building.
20
- - run : docker build --build-arg ENV=development -t $DEV_AWS_ACCOUNT_ID.dkr.ecr.$DEV_AWS_REGION.amazonaws.com/community-app:$CIRCLE_SHA1 .
20
+ - run : docker build --build-arg ENV=development --cache-from=$DEV_AWS_ACCOUNT_ID.dkr.ecr.$DEV_AWS_REGION.amazonaws.com/community-app - t $DEV_AWS_ACCOUNT_ID.dkr.ecr.$DEV_AWS_REGION.amazonaws.com/community-app .
21
21
22
22
# Updating the cache.
23
- - run : mkdir -p /caches && docker save -o /caches/app.tar $DEV_AWS_ACCOUNT_ID.dkr.ecr.$DEV_AWS_REGION.amazonaws.com/community-app:$CIRCLE_SHA1
23
+ - run : mkdir -p /caches && docker save -o /caches/app.tar $DEV_AWS_ACCOUNT_ID.dkr.ecr.$DEV_AWS_REGION.amazonaws.com/community-app
24
24
- save_cache :
25
25
key : dev-docker-image-{{ checksum "package-lock.json" }}
26
26
paths :
27
27
- /caches/app.tar
28
28
29
29
# Deployment.
30
- - run : apt-get install python-dev python -pip
30
+ - run : apk add --update py -pip
31
31
- run : pip install awscli --upgrade --user
32
32
- deploy :
33
- command : ./deploy.sh DEV $CIRCLE_SHA1
33
+ command : ./deploy.sh DEV
34
34
35
35
# Test job for the cases when we do not need deployment. It just rapidly
36
36
# installs (updates) app dependencies, and runs tests (ESLint, Stylelint,
Original file line number Diff line number Diff line change 4
4
JQ=" jq --raw-output --exit-status"
5
5
6
6
ENV=$1
7
- TAG= $2
7
+
8
8
AWS_REGION=$( eval " echo \$ ${ENV} _AWS_REGION" )
9
9
AWS_ECS_CLUSTER=$( eval " echo \$ ${ENV} _AWS_ECS_CLUSTER" )
10
10
ACCOUNT_ID=$( eval " echo \$ ${ENV} _AWS_ACCOUNT_ID" )
@@ -75,13 +75,13 @@ make_task_def(){
75
75
NODE_ENV=development
76
76
fi
77
77
78
- task_def=$( printf " $task_template " $ACCOUNT_ID $AWS_REGION $AWS_REPOSITORY $TAG $ NODE_ENV $AWS_ECS_CLUSTER $AWS_REGION )
78
+ task_def=$( printf " $task_template " $ACCOUNT_ID $AWS_REGION $AWS_REPOSITORY $NODE_ENV $AWS_ECS_CLUSTER $AWS_REGION )
79
79
}
80
80
81
81
push_ecr_image () {
82
82
echo " Pushing Docker Image..."
83
83
eval $( aws ecr get-login --region $AWS_REGION )
84
- docker push $ACCOUNT_ID .dkr.ecr.$AWS_REGION .amazonaws.com/$AWS_REPOSITORY : $TAG
84
+ docker push $ACCOUNT_ID .dkr.ecr.$AWS_REGION .amazonaws.com/$AWS_REPOSITORY
85
85
echo " Docker Image published."
86
86
}
87
87
You can’t perform that action at this time.
0 commit comments