File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
# make sure docker is running
4
+ shopt -s expand_aliases
5
+ if [ " $JENKINS_BUILD " = " true" ]; then
6
+ alias aws=" ${AWSCLIV2} "
7
+ type aws
8
+ else
9
+ echo " This isn't a Jenkins build, so we will use the local aws-cli version."
10
+ type aws
11
+ fi
4
12
5
13
yarn build
6
14
docker --version
7
15
docker pull golang
8
- # copied from ecr instructions
16
+ # # copied from ecr instructions
9
17
aws --version
10
18
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 268215509542.dkr.ecr.us-east-1.amazonaws.com
11
19
docker build -t 1stdibs-recess .
12
20
docker tag 1stdibs-recess:latest 268215509542.dkr.ecr.us-east-1.amazonaws.com/1stdibs-recess:latest
13
21
docker push 268215509542.dkr.ecr.us-east-1.amazonaws.com/1stdibs-recess:latest
14
-
15
- # ecs deploy one-liner from Joey
22
+ #
23
+ # # ecs deploy one-liner from Joey
16
24
aws --region us-east-1 ecs update-service --service recess-service --cluster recess-cluster --force-new-deployment
You can’t perform that action at this time.
0 commit comments