staging updates

This commit is contained in:
Bryce Covert
2021-12-24 08:53:53 -08:00
parent e7ae9e5df0
commit 6e5c1ce155
2 changed files with 151 additions and 3 deletions

View File

@@ -24,13 +24,13 @@ phases:
- cp imagedefinitions.json target/
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t $REPOSITORY_URI:latest .
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
- docker build -t $REPOSITORY_URI:$TAG_NAME .
- docker tag $REPOSITORY_URI:$TAG_NAME $REPOSITORY_URI:$IMAGE_TAG
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker images...
- docker push $REPOSITORY_URI:latest
- docker push $REPOSITORY_URI:$TAG_NAME
- docker push $REPOSITORY_URI:$IMAGE_TAG
- echo Writing image definitions file...
- printf '[{"name":"integreat","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json