Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulumi via ion #294

Merged
merged 12 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ INTERNAL_SECRET=areallylongsecretthatyoushouldreplace
PROD_URL=http://localhost:3000
MDM_URL=http://localhost:8005
EMAIL_URL=http://localhost:3002
DATABASE_URL='mysql://todo:[email protected]/todo?ssl={"rejectUnauthorized":true}'
PLANETSCALE_URL='mysql://todo:[email protected]/todo?ssl={"rejectUnauthorized":true}'
STRIPE_PUBLISHABLE_KEY=
STRIPE_SECRET_KEY=
# Syncing users
Expand All @@ -15,4 +15,4 @@ AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# Used for landing only
VITE_MATTRAX_CLOUD_ORIGIN=http://localhost:3000 # Should point to `apps/web`
VITE_MATTRAX_CLOUD_ORIGIN=http://localhost:3000 # Should point to `apps/web`
307 changes: 0 additions & 307 deletions .github/workflows/release.yml

This file was deleted.

30 changes: 13 additions & 17 deletions .github/workflows/sst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ jobs:
- name: Git clone the repository
uses: actions/checkout@v3

# - name: Configure Azure credentials
# uses: azure/login@v1
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# allow-no-subscriptions: true

# TODO: We don't use OIDC because I can't work out the permissions.
# - How tf do you make an app registration global administrator. That doesn't even makes sense.
- name: Configure Azure credentials
run: az login --username "$AZURE_USERNAME" --password "$AZURE_APP_SPECIFIC_PASSWORD"
env:
AZURE_USERNAME: ${{ secrets.AZURE_USERNAME }}
AZURE_APP_SPECIFIC_PASSWORD: ${{ secrets.AZURE_APP_SPECIFIC_PASSWORD }}

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand All @@ -49,5 +34,16 @@ jobs:
- name: Install SST
run: curl -fsSL https://ion.sst.dev/install | bash

- name: Deploy app
run: pnpm i && PATH=/home/runner/.sst/bin:$PATH pnpm infra deploy --stage prod
- run: pnpm i

- run: cd infra && sst deploy --stage brendonovich
env:
ARM_USE_OIDC: true
ARM_CLIENT_ID: ${{ vars.ARM_CLIENT_ID }}
ARM_TENANT_ID: ${{ vars.ARM_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ vars.ARM_SUBSCRIPTION_ID }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ vars.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}
CLOUDFLARE_EMAIL: ${{ vars.CLOUDFLARE_EMAIL }}
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
OAUTH_CLIENT_ID: ${{ vars.TAILSCALE_OAUTH_CLIENT_ID }}
OAUTH_CLIENT_SECRET: ${{ secrets.TAILSCALE_OAUTH_SECRET }}
Loading
Loading