Skip to content

Commit

Permalink
fix login script
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushAgrawal-A2 committed Dec 22, 2024
1 parent 55c770b commit 3155209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/preview-cloudformation-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy CloudFormation Stack for Preview Branch
name: Deploy CloudFormation Stack - Preview

on:
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions infra/aws-cloudformation/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ Resources:
# Source the new environment variables
source /home/ubuntu/.profile

# Run Quadratic initialization
curl -sSf https://raw.githubusercontent.com/quadratichq/quadratic-selfhost/main/init.sh -o init.sh && bash -i init.sh ${LicenseKey} ${ImageTag}.quadratic-preview.com

# Create login.sh script
echo '#!/bin/bash
aws ecr get-login-password --region ${AWS::Region} | docker login --username AWS --password-stdin ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com' > /quadratic-selfhost/login.sh
chmod +x /quadratic-selfhost/login.sh

# Run Quadratic initialization
curl -sSf https://raw.githubusercontent.com/quadratichq/quadratic-selfhost/main/init.sh -o init.sh && bash -i init.sh ${LicenseKey} ${ImageTag}.quadratic-preview.com

DnsRecords:
Type: AWS::Route53::RecordSet
DeletionPolicy: Delete
Expand Down

0 comments on commit 3155209

Please sign in to comment.