Skip to content

Instantly share code, notes, and snippets.

@patrickbrus
Created September 18, 2022 13:57
Show Gist options
  • Save patrickbrus/41be59b32313ca8b2a1575e289708668 to your computer and use it in GitHub Desktop.
Save patrickbrus/41be59b32313ca8b2a1575e289708668 to your computer and use it in GitHub Desktop.
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