Drop the stray CodeBuild buildspec from deploy-to-s3.yml (corrected file from DevOps)
Deploy to S3 / deploy (push) Successful in 28s
Details
Deploy to S3 / deploy (push) Successful in 28s
Details
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>main
parent
7aa2751975
commit
5d1ccd774c
|
|
@ -47,42 +47,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Uploading repo contents to S3..."
|
echo "Uploading repo contents to S3..."
|
||||||
aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip
|
aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
version: 0.2
|
|
||||||
|
|
||||||
phases:
|
|
||||||
install:
|
|
||||||
runtime-versions:
|
|
||||||
python: 3.11 # better than java for Python project; change version if needed
|
|
||||||
commands:
|
|
||||||
- echo "Downloading previous bundle if needed..."
|
|
||||||
- aws s3 cp s3://utopia-ai-s3-repo-bucket/utopia-ai-finance-accounts.zip .
|
|
||||||
|
|
||||||
build:
|
|
||||||
commands:
|
|
||||||
- echo "Extracting app.zip to current directory (flat)..."
|
|
||||||
- unzip -o utopia-ai-finance-accounts.zip || echo "No app.zip found or unzip failed - assuming files already present"
|
|
||||||
- echo "Downloading deployment files..."
|
|
||||||
- aws s3 cp s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/appspec.yml .
|
|
||||||
- aws s3 cp s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/deploy_utopia-ai-finance-accounts.sh .
|
|
||||||
- chmod +x *.sh
|
|
||||||
- ls -la # debug: verify appspec.yml, deploy_ai.sh and Python files are now at root
|
|
||||||
|
|
||||||
post_build:
|
|
||||||
commands:
|
|
||||||
- echo "Creating deployment bundle..."
|
|
||||||
- zip -r utopia-ai-finance-accounts.zip . -x "*.zip"
|
|
||||||
- echo "Uploading final deployment bundle to S3..."
|
|
||||||
- aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-s3-bucket/utopia-ai-finance-accounts-artifact-folder/utopia-ai-finance-accounts.zip
|
|
||||||
- aws s3 cp utopia-ai-finance-accounts.zip s3://utopia-ai-fba-pipeline-east2/utopia-ai-finance-accounts.zip --region us-east-2
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
files:
|
|
||||||
- '**/*' # everything at root goes into artifact ZIP
|
|
||||||
discard-paths: no
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue