Update workflow to inject S3 bucket name into deployment script

- Workflow now updates deploy.sh with the actual S3 bucket name before uploading
- Add S3_BUCKET_NAME=none override option to README for local-only deployment
- Update README to show both ARM64 and x86_64 support

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code 2025-07-06 18:14:04 -04:00
parent 70deab5bbf
commit 429a5d4afc
2 changed files with 13 additions and 3 deletions

View file

@ -27,10 +27,16 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Update deployment script with S3 bucket name
run: |
# Create a copy of deploy.sh with the S3 bucket name updated
cp scripts/deploy.sh /tmp/deploy.sh
sed -i 's/S3_BUCKET_NAME="${S3_BUCKET_NAME:-ice-puremichigan-lol}"/S3_BUCKET_NAME="${S3_BUCKET_NAME:-${{ secrets.S3_BUCKET_NAME }}}"/' /tmp/deploy.sh
- name: Upload deployment script to S3
run: |
# Upload the main deployment script
aws s3 cp scripts/deploy.sh s3://${{ secrets.S3_BUCKET_NAME }}/scripts/deploy.sh \
# Upload the updated deployment script
aws s3 cp /tmp/deploy.sh s3://${{ secrets.S3_BUCKET_NAME }}/scripts/deploy.sh \
--content-type "text/plain" \
--cache-control "max-age=300" \
--metadata-directive REPLACE \