You've already forked microservices
mirror of
https://github.com/ebosas/microservices.git
synced 2025-08-24 20:08:55 +02:00
Update images tag
This commit is contained in:
@@ -178,6 +178,10 @@ Resources:
|
|||||||
pre_build:
|
pre_build:
|
||||||
commands:
|
commands:
|
||||||
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $REGISTRY
|
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $REGISTRY
|
||||||
|
- TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)
|
||||||
|
- IMAGE_SERVER_URI=$REPO_SERVER_URI:$TAG
|
||||||
|
- IMAGE_CACHE_URI=$REPO_CACHE_URI:$TAG
|
||||||
|
- IMAGE_DB_URI=$REPO_DB_URI:$TAG
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- docker build -t $IMAGE_SERVER_URI -f server.Dockerfile .
|
- docker build -t $IMAGE_SERVER_URI -f server.Dockerfile .
|
||||||
@@ -203,12 +207,12 @@ Resources:
|
|||||||
# Value: !Ref AWS::AccountId
|
# Value: !Ref AWS::AccountId
|
||||||
- Name: REGISTRY
|
- Name: REGISTRY
|
||||||
Value: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com
|
Value: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com
|
||||||
- Name: IMAGE_SERVER_URI
|
- Name: REPO_SERVER_URI
|
||||||
Value: !Sub ${ServerRepository.RepositoryUri}:latest
|
Value: !Sub ${ServerRepository.RepositoryUri}
|
||||||
- Name: IMAGE_CACHE_URI
|
- Name: REPO_CACHE_URI
|
||||||
Value: !Sub ${CacheRepository.RepositoryUri}:latest
|
Value: !Sub ${CacheRepository.RepositoryUri}
|
||||||
- Name: IMAGE_DB_URI
|
- Name: REPO_DB_URI
|
||||||
Value: !Sub ${DatabaseRepository.RepositoryUri}:latest
|
Value: !Sub ${DatabaseRepository.RepositoryUri}
|
||||||
Name: !Ref AWS::StackName
|
Name: !Ref AWS::StackName
|
||||||
ServiceRole: !Ref CodeBuildServiceRole
|
ServiceRole: !Ref CodeBuildServiceRole
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user