Created
March 25, 2019 01:41
-
-
Save Anakin-Hao/4a716d1643a9f29b7bb6eaa4f82f883a to your computer and use it in GitHub Desktop.
Build all albi containers in a fodler and push
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
Get-ChildItem .\containers\api\ -Filter albi_*_rest | Foreach-Object { | |
$name = $_.BaseName | |
ECHO $name | |
$short = $name.replace("albi_", "") | |
$tag = "$short" + ":latest" | |
ECHO $short | |
docker build -t 440617634381.dkr.ecr.ap-southeast-2.amazonaws.com/albi/$tag .\\containers\\api\\ -f .\\containers\\api\\$name\\Dockerfile --no-cache | |
docker push 440617634381.dkr.ecr.ap-southeast-2.amazonaws.com/albi/$tag | |
kubectl delete pods -l app=$short} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment