Skip to content

Commit

Permalink
feat(envited.ascs.digital): update deployment with next auth vars (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
royscheeren authored Feb 1, 2024
2 parents 1b94ce8 + 6e70ce3 commit ab40275
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- develop
- 82_update_deployment_with_next_auth_vars

# Concurrency group name ensures concurrent workflow runs wait for any in-progress job to finish
concurrency:
Expand All @@ -17,7 +18,9 @@ jobs:
runs-on: ubuntu-latest
environment: staging
env:
PLATFORM: ${{ vars.PLATFORM }}
ENV: ${{ vars.ENV }}
NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
steps:
- name: Git clone the repository
uses: actions/checkout@v3
Expand Down
5 changes: 0 additions & 5 deletions apps/envited.ascs.digital/common/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ export const authOptions: NextAuthOptions = {
},
providers: [
CredentialsProvider({
// The name to display on the sign in form (e.g. 'Sign in with...')
name: 'Sign in with Your Credentials',
// The credentials is used to generate a suitable form on the sign in page.
// You can specify whatever fields you are expecting to be submitted.
// e.g. domain, username, password, 2FA token, etc.
// You can pass any HTML attribute to the <input> tag through the object.
credentials: {
pkh: { label: 'Address', type: 'text', placeholder: 'tz...' },
},
Expand Down
3 changes: 3 additions & 0 deletions apps/envited.ascs.digital/stacks/Envited.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export default function Envited({ stack }: StackContext) {
environment: {
RDS_SECRET_ARN: rdsCluster.secret?.secretArn || '',
REGION: process.env.region || 'eu-central-1',
ENV: process.env.ENV!,
NEXTAUTH_URL: process.env.NEXTAUTH_URL!,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET!,
},
})

Expand Down

0 comments on commit ab40275

Please sign in to comment.