Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,13 @@ phases:
pre_build:
commands:
- $(aws ecr get-login --no-include-email --region ${AWS_REGION})
install:
commands:
- echo Installing Meteor
- curl https://install.meteor.com/ | sh
build:
commands:
- meteor npm install
- 'sed -i "s,<\!-- COMMIT: -->,<\!-- COMMIT: $CODEBUILD_SOURCE_VERSION $CODEBUILD_RESOLVED_SOURCE_VERSION -->,g" client/main.html'
- meteor build --directory /tmp/export-meteor/build --allow-superuser
- printf "FROM ulexus/meteor:build\nCOPY build /home/meteor/www\nRUN chown -R meteor:meteor /home/meteor/\n" >/tmp/export-meteor/Dockerfile
- cd /tmp/export-meteor
- docker build -t ${APP} -t ${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION .
- docker tag ${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION ${ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION
- docker tag ${APP}:latest ${ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${APP}:latest
- docker tag ${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION
${ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION
- docker tag ${APP}:latest
${ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${APP}:latest
post_build:
commands:
- docker push ${ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/${APP}:$CODEBUILD_RESOLVED_SOURCE_VERSION
Expand Down