-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
100 additions
and
92 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
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 |
---|---|---|
@@ -1,23 +1,11 @@ | ||
#!/bin/bash | ||
|
||
tag=$1 | ||
TAG=$1 | ||
AWS_SSO_PROFILE=lee-solo | ||
ECR_URI=310753928788.dkr.ecr.us-east-2.amazonaws.com | ||
|
||
docker tag drive-gooder-base:"$tag" "$ECR_URI"/drive-gooder-base:"$tag" | ||
docker tag drive-gooder-base:"$tag" "$ECR_URI"/drive-gooder-base:latest | ||
|
||
aws ecr get-login-password --region us-east-2 --profile "$AWS_SSO_PROFILE" | docker login --username AWS --password-stdin "$ECR_URI" | ||
# docker push "$ECR_URI"/drive-gooder-container-repository -a | ||
docker push "$ECR_URI"/drive-gooder-final -a | ||
|
||
|
||
# build amd image from macbook and push to ECR | ||
# docker buildx build . -f cloud/Final.Dockerfile --platform=linux/amd64 --push -t "$ECR_URI"/drive-gooder-final:latest | ||
|
||
|
||
|
||
|
||
docker buildx build . -f cloud/Test.Dockerfile --platform=linux/amd64 --push -t "$ECR_URI"/drive-gooder-final:test-nginx | ||
|
||
docker buildx build . -f cloud/lite.Dockerfile --platform=linux/amd64 --push -t "$ECR_URI"/drive-gooder-final:nginx-lite | ||
docker buildx build . -f cloud/Final.Dockerfile --platform=linux/amd64 --push \ | ||
-t 310753928788.dkr.ecr.us-east-2.amazonaws.com/drive-gooder-final:latest \ | ||
-t 310753928788.dkr.ecr.us-east-2.amazonaws.com/drive-gooder-final:"$TAG" |
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
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
This file was deleted.
Oops, something went wrong.
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