-
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.
Updated to make code branch independent
- Loading branch information
1 parent
7e33503
commit 94fb352
Showing
7 changed files
with
40 additions
and
11 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*.list |
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,18 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
echo "Usage: ecr-push.sh <env>" | ||
exit 1 | ||
fi | ||
|
||
source deploy/env.sh env-common.list | ||
source deploy/env.sh env-$1.list | ||
|
||
# AWS CLI v1 | ||
#eval $(aws ecr get-login --no-include-email --region $AWS_REGION --profile $AWS_PROFILE) | ||
# AWS CLI v2 | ||
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $ECR_HOST | ||
|
||
docker buildx build --platform linux/arm64 --push \ | ||
-t $ECR_HOST/$IMAGE_NAME . |
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,17 @@ | ||
## | ||
# Copies Docker environment variables from one of the Docker variable files | ||
# into shell environment variables. | ||
# | ||
|
||
if [ $# -lt 1 ] | ||
then | ||
echo "Usage: env.sh <filename>" | ||
exit 1 | ||
fi | ||
|
||
while read p; do | ||
if [[ $p != "#"* && $p != "" ]]; then | ||
IFS='=' read -ra parts <<< "$p" | ||
export "${parts[0]}"="${parts[1]}" | ||
fi | ||
done < deploy/$1 |
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
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