Moved ECR declaration to pre_build to evaluate correctly

This commit is contained in:
Pavel Pivovarov
2019-03-16 01:40:19 +00:00
parent 9a72deb538
commit 116294989e
2 changed files with 4 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ version: 0.2
env:
variables:
USER: snowmean
ECR: 724284355692.dkr.ecr.${AWS_REGION}.amazonaws.com
ACCOUNT: 724284355692
parameter-store:
PASSWD: "docker_password"
@@ -14,6 +14,7 @@ phases:
- echo "Evaluating environment"
- TAG=$(cat tag.txt)
- IMAGE="snibox-sqlite"
- ECR="$ACCOUNT.dkr.ecr.$AWS_REGION.amazonaws.com"
build:
commands:
- echo "Logging to ECR"