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:
parent
70deab5bbf
commit
429a5d4afc
2 changed files with 13 additions and 3 deletions
|
@ -27,10 +27,16 @@ jobs:
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
aws-region: ${{ secrets.AWS_REGION }}
|
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
|
- name: Upload deployment script to S3
|
||||||
run: |
|
run: |
|
||||||
# Upload the main deployment script
|
# Upload the updated deployment script
|
||||||
aws s3 cp scripts/deploy.sh s3://${{ secrets.S3_BUCKET_NAME }}/scripts/deploy.sh \
|
aws s3 cp /tmp/deploy.sh s3://${{ secrets.S3_BUCKET_NAME }}/scripts/deploy.sh \
|
||||||
--content-type "text/plain" \
|
--content-type "text/plain" \
|
||||||
--cache-control "max-age=300" \
|
--cache-control "max-age=300" \
|
||||||
--metadata-directive REPLACE \
|
--metadata-directive REPLACE \
|
||||||
|
|
|
@ -115,11 +115,15 @@ PORT=3000
|
||||||
|
|
||||||
See `docs/deployment-quickstart.md` for a simplified deployment guide.
|
See `docs/deployment-quickstart.md` for a simplified deployment guide.
|
||||||
|
|
||||||
### Automated Deployment (Debian 12 ARM64)
|
### Automated Deployment (Debian 12 ARM64/x86_64)
|
||||||
|
|
||||||
1. **Run the deployment script on your server:**
|
1. **Run the deployment script on your server:**
|
||||||
```bash
|
```bash
|
||||||
|
# Default: Downloads config from S3
|
||||||
curl -sSL https://ice-puremichigan-lol.s3.amazonaws.com/scripts/deploy.sh | bash
|
curl -sSL https://ice-puremichigan-lol.s3.amazonaws.com/scripts/deploy.sh | bash
|
||||||
|
|
||||||
|
# Alternative: Use local files only (no S3)
|
||||||
|
curl -sSL https://ice-puremichigan-lol.s3.amazonaws.com/scripts/deploy.sh | S3_BUCKET_NAME=none bash
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Deploy your application:**
|
2. **Deploy your application:**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue