Skip to content

Commit

Permalink
chore: fix sam deploy (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai authored Dec 26, 2024
2 parents 757d37f + c824b50 commit dd451dd
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 54 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/aws-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,31 @@ jobs:
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--config-file .aws/petercat-preview.toml \
--parameter-overrides APIUrl="https://api-pre.petercat.ai" \
WebUrl="https://petercat.ai" \
StaticUrl="https://static.petercat.ai" \
PetercatEnv="preview" \
GithubSecretName=${{ secrets.X_GITHUB_SECRET_NAME }} \
StaticSecretName=${{ secrets.STATIC_SECRET_NAME }} \
LLMTokenSecretName=${{ vars.LLM_TOKEN_SECRET_NAME }} \
LLMTokenPublicName=${{ vars.LLM_TOKEN_PUBLIC_NAME }} \
StaticKeyPairId=${{ secrets.STATIC_KEYPAIR_ID }} \
S3TempBucketName=${{ vars.S3_TEMP_BUCKET_NAME }} \
GitHubAppID=${{ secrets.X_GITHUB_APP_ID }} \
GithubAppsClientId=${{ secrets.X_GITHUB_APPS_CLIENT_ID }} \
GithubAppsClientSecret=${{ secrets.X_GITHUB_APPS_CLIENT_SECRET }} \
OpenAIAPIKey=${{ secrets.OPENAI_API_KEY }} \
OpenAIBaseUrl=${{ vars.OPENAI_BASE_URL || 'https://api.openai.com/v1' }} \
GeminiAPIKey=${{ secrets.GEMINI_API_KEY }} \
SupabaseServiceKey=${{ secrets.SUPABASE_SERVICE_KEY }} \
SupabaseUrl=${{ secrets.SUPABASE_URL }} \
TavilyAPIKey=${{ secrets.TAVILY_API_KEY }} \
APIIdentifier=${{ secrets.API_IDENTIFIER }} \
FastAPISecretKey=${{ secrets.FASTAPI_SECRET_KEY }} \
SQSQueueName=${{ secrets.SQS_QUEUE_NAME }} \
SQSQueueUrl=${{ secrets.SQS_QUEUE_URL }} \
GitHubToken=${{ secrets.X_GITHUB_TOKEN }} \
Auth0Domain=${{ secrets.AUTH0_DOMAIN }} \
Auth0ClientId=${{ secrets.AUTH0_CLIENT_ID }} \
Auth0ClientSecret=${{ secrets.AUTH0_CLIENT_SECRET }}
--parameter-overrides \
ParameterKey=APIUrl,ParameterValue="https://api-pre.petercat.ai" \
ParameterKey=WebUrl,ParameterValue="https://petercat.ai" \
ParameterKey=StaticUrl,ParameterValue="https://static.petercat.ai" \
ParameterKey=PetercatEnv,ParameterValue="preview" \
ParameterKey=GithubSecretName,ParameterValue=${{ secrets.X_GITHUB_SECRET_NAME }} \
ParameterKey=StaticSecretName,ParameterValue=${{ secrets.STATIC_SECRET_NAME }} \
ParameterKey=LLMTokenSecretName,ParameterValue=${{ vars.LLM_TOKEN_SECRET_NAME }} \
ParameterKey=LLMTokenPublicName,ParameterValue=${{ vars.LLM_TOKEN_PUBLIC_NAME }} \
ParameterKey=StaticKeyPairId,ParameterValue=${{ secrets.STATIC_KEYPAIR_ID }} \
ParameterKey=S3TempBucketName,ParameterValue=${{ vars.S3_TEMP_BUCKET_NAME }} \
ParameterKey=GitHubAppID,ParameterValue=${{ secrets.X_GITHUB_APP_ID }} \
ParameterKey=GithubAppsClientId,ParameterValue=${{ secrets.X_GITHUB_APPS_CLIENT_ID }} \
ParameterKey=GithubAppsClientSecret,ParameterValue=${{ secrets.X_GITHUB_APPS_CLIENT_SECRET }} \
ParameterKey=OpenAIAPIKey,ParameterValue=${{ secrets.OPENAI_API_KEY }} \
ParameterKey=OpenAIBaseUrl,ParameterValue=${{ vars.OPENAI_BASE_URL || 'https://api.openai.com/v1' }} \
ParameterKey=GeminiAPIKey,ParameterValue=${{ secrets.GEMINI_API_KEY }} \
ParameterKey=SupabaseServiceKey,ParameterValue=${{ secrets.SUPABASE_SERVICE_KEY }} \
ParameterKey=SupabaseUrl,ParameterValue=${{ secrets.SUPABASE_URL }} \
ParameterKey=TavilyAPIKey,ParameterValue=${{ secrets.TAVILY_API_KEY }} \
ParameterKey=APIIdentifier,ParameterValue=${{ secrets.API_IDENTIFIER }} \
ParameterKey=FastAPISecretKey,ParameterValue=${{ secrets.FASTAPI_SECRET_KEY }} \
ParameterKey=SQSQueueName,ParameterValue=${{ secrets.SQS_QUEUE_NAME }} \
ParameterKey=SQSQueueUrl,ParameterValue=${{ secrets.SQS_QUEUE_URL }} \
ParameterKey=GitHubToken,ParameterValue=${{ secrets.X_GITHUB_TOKEN }} \
ParameterKey=Auth0Domain,ParameterValue=${{ secrets.AUTH0_DOMAIN }} \
ParameterKey=Auth0ClientId,ParameterValue=${{ secrets.AUTH0_CLIENT_ID }} \
ParameterKey=Auth0ClientSecret,ParameterValue=${{ secrets.AUTH0_CLIENT_SECRET }}
55 changes: 28 additions & 27 deletions .github/workflows/aws-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,31 @@ jobs:
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--config-file .aws/petercat-prod.toml \
--parameter-overrides APIUrl="https://api.petercat.ai" \
WebUrl="https://petercat.ai" \
StaticUrl="https://static.petercat.ai" \
PetercatEnv="production" \
GithubSecretName=${{ secrets.X_GITHUB_SECRET_NAME }} \
StaticSecretName=${{ secrets.STATIC_SECRET_NAME }} \
LLMTokenSecretName=${{ vars.LLM_TOKEN_SECRET_NAME }} \
LLMTokenPublicName=${{ vars.LLM_TOKEN_PUBLIC_NAME }} \
StaticKeyPairId=${{ secrets.STATIC_KEYPAIR_ID }} \
S3TempBucketName=${{ vars.S3_TEMP_BUCKET_NAME }} \
GitHubAppID=${{ secrets.X_GITHUB_APP_ID }} \
GithubAppsClientId=${{ secrets.X_GITHUB_APPS_CLIENT_ID }} \
GithubAppsClientSecret=${{ secrets.X_GITHUB_APPS_CLIENT_SECRET }} \
OpenAIAPIKey=${{ secrets.OPENAI_API_KEY }} \
OpenAIBaseUrl=${{ vars.OPENAI_BASE_URL || 'https://api.openai.com/v1' }} \
GeminiAPIKey=${{ secrets.GEMINI_API_KEY }} \
SupabaseServiceKey=${{ secrets.SUPABASE_SERVICE_KEY }} \
SupabaseUrl=${{ secrets.SUPABASE_URL }} \
TavilyAPIKey=${{ secrets.TAVILY_API_KEY }} \
APIIdentifier=${{ secrets.API_IDENTIFIER }} \
FastAPISecretKey=${{ secrets.FASTAPI_SECRET_KEY }} \
SQSQueueName=${{ secrets.SQS_QUEUE_NAME }} \
SQSQueueUrl=${{ secrets.SQS_QUEUE_URL }} \
GitHubToken=${{ secrets.X_GITHUB_TOKEN }} \
Auth0Domain=${{ secrets.AUTH0_DOMAIN }} \
Auth0ClientId=${{ secrets.AUTH0_CLIENT_ID }} \
Auth0ClientSecret=${{ secrets.AUTH0_CLIENT_SECRET }}
--parameter-overrides \
ParameterKey=APIUrl,ParameterValue="https://api.petercat.ai" \
ParameterKey=WebUrl,ParameterValue="https://petercat.ai" \
ParameterKey=StaticUrl,ParameterValue="https://static.petercat.ai" \
ParameterKey=PetercatEnv,ParameterValue="production" \
ParameterKey=GithubSecretName,ParameterValue=${{ secrets.X_GITHUB_SECRET_NAME }} \
ParameterKey=StaticSecretName,ParameterValue=${{ secrets.STATIC_SECRET_NAME }} \
ParameterKey=LLMTokenSecretName,ParameterValue=${{ vars.LLM_TOKEN_SECRET_NAME }} \
ParameterKey=LLMTokenPublicName,ParameterValue=${{ vars.LLM_TOKEN_PUBLIC_NAME }} \
ParameterKey=StaticKeyPairId,ParameterValue=${{ secrets.STATIC_KEYPAIR_ID }} \
ParameterKey=S3TempBucketName,ParameterValue=${{ vars.S3_TEMP_BUCKET_NAME }} \
ParameterKey=GitHubAppID,ParameterValue=${{ secrets.X_GITHUB_APP_ID }} \
ParameterKey=GithubAppsClientId,ParameterValue=${{ secrets.X_GITHUB_APPS_CLIENT_ID }} \
ParameterKey=GithubAppsClientSecret,ParameterValue=${{ secrets.X_GITHUB_APPS_CLIENT_SECRET }} \
ParameterKey=OpenAIAPIKey,ParameterValue=${{ secrets.OPENAI_API_KEY }} \
ParameterKey=OpenAIBaseUrl,ParameterValue=${{ vars.OPENAI_BASE_URL || 'https://api.openai.com/v1' }} \
ParameterKey=GeminiAPIKey,ParameterValue=${{ secrets.GEMINI_API_KEY }} \
ParameterKey=SupabaseServiceKey,ParameterValue=${{ secrets.SUPABASE_SERVICE_KEY }} \
ParameterKey=SupabaseUrl,ParameterValue=${{ secrets.SUPABASE_URL }} \
ParameterKey=TavilyAPIKey,ParameterValue=${{ secrets.TAVILY_API_KEY }} \
ParameterKey=APIIdentifier,ParameterValue=${{ secrets.API_IDENTIFIER }} \
ParameterKey=FastAPISecretKey,ParameterValue=${{ secrets.FASTAPI_SECRET_KEY }} \
ParameterKey=SQSQueueName,ParameterValue=${{ secrets.SQS_QUEUE_NAME }} \
ParameterKey=SQSQueueUrl,ParameterValue=${{ secrets.SQS_QUEUE_URL }} \
ParameterKey=GitHubToken,ParameterValue=${{ secrets.X_GITHUB_TOKEN }} \
ParameterKey=Auth0Domain,ParameterValue=${{ secrets.AUTH0_DOMAIN }} \
ParameterKey=Auth0ClientId,ParameterValue=${{ secrets.AUTH0_CLIENT_ID }} \
ParameterKey=Auth0ClientSecret,ParameterValue=${{ secrets.AUTH0_CLIENT_SECRET }}

0 comments on commit dd451dd

Please sign in to comment.