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

feat(envited.ascs.digital): update deployment with next auth vars #83

Merged
merged 3 commits into from
Feb 1, 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
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
Loading