-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Hobson
committed
Sep 2, 2021
1 parent
4cda7cc
commit 29aac83
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
on-failure: ABORT | ||
commands: | ||
- ./scripts/codebuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
set -x | ||
|
||
echo "${DOCKER_PASSWORD}" | \ | ||
docker login --username "${DOCKER_USERNAME}" --password-stdin | ||
|
||
docker build -t "${ECR_REPO}:exp" . | ||
|
||
aws ecr get-login-password --region $AWS_REGION \ | ||
| docker login --username AWS --password-stdin "${ECR_REPO}" | ||
|
||
docker push "${ECR_REPO}:exp" | ||
|
||
aws ecs update-service \ | ||
--cluster loadtesting \ | ||
--service exp-web \ | ||
--task-definition exp-web-loadtesting:3 \ | ||
--desired-count 1 | ||
|
||
exit 0 |