Created
September 18, 2022 13:57
-
-
Save patrickbrus/41be59b32313ca8b2a1575e289708668 to your computer and use it in GitHub Desktop.
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
version: 0.2 | |
phases: | |
pre_build: | |
commands: | |
- echo Build started on `date` | |
- echo List all available files | |
- ls -ll | |
- echo Delete current model folder and fetch new model from s3 | |
- rm -rf model | |
- echo Copy from bucket $BUCKET_NAME which is in region $BUCKET_REGION | |
- aws s3 cp --recursive s3://${BUCKET_NAME}/final_model/ ./model/final_model/ --region $BUCKET_REGION | |
build: | |
commands: | |
- echo Build started on `date` | |
- echo Building the Docker image... | |
- docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG . | |
post_build: | |
commands: | |
- echo Build completed on `date` | |
artifacts: | |
files: | |
- "**/*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment