Skip to content

Commit 583074c

Browse files
Awscli docker update (#15)
* awscli var check * just testing * ready to go
1 parent f0bd1ce commit 583074c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

deploy.sh

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
#!/bin/bash
22
set -e
33
# 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
412

513
yarn build
614
docker --version
715
docker pull golang
8-
# copied from ecr instructions
16+
## copied from ecr instructions
917
aws --version
1018
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 268215509542.dkr.ecr.us-east-1.amazonaws.com
1119
docker build -t 1stdibs-recess .
1220
docker tag 1stdibs-recess:latest 268215509542.dkr.ecr.us-east-1.amazonaws.com/1stdibs-recess:latest
1321
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
1624
aws --region us-east-1 ecs update-service --service recess-service --cluster recess-cluster --force-new-deployment

0 commit comments

Comments
 (0)