2023-02-28 10:41:55 +00:00
|
|
|
name: Create .env file
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
env:
|
2023-07-13 17:08:50 +00:00
|
|
|
ENV_FILE_NAME: gh.env-${{ github.sha }}
|
2023-02-28 10:41:55 +00:00
|
|
|
INPUT_ENV_DATABASE_URL: postgresql://postgres:@localhost:5432/calendso
|
|
|
|
INPUT_ENV_NEXT_PUBLIC_WEBAPP_URL: http://localhost:3000
|
|
|
|
INPUT_ENV_NEXT_PUBLIC_WEBSITE_URL: http://localhost:3000
|
|
|
|
INPUT_ENV_NEXTAUTH_SECRET: secret
|
|
|
|
INPUT_ENV_GOOGLE_API_CREDENTIALS: ${{ secrets.CI_GOOGLE_API_CREDENTIALS }}
|
|
|
|
INPUT_ENV_GOOGLE_LOGIN_ENABLED: true
|
|
|
|
# INPUT_ENV_CRON_API_KEY: xxx
|
2023-06-28 16:22:51 +00:00
|
|
|
# INPUT_ENV_CRON_ENABLE_APP_SYNC: true|false
|
2023-02-28 10:41:55 +00:00
|
|
|
INPUT_ENV_CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
|
|
|
|
INPUT_ENV_NEXT_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.CI_NEXT_PUBLIC_STRIPE_PUBLIC_KEY }}
|
|
|
|
INPUT_ENV_STRIPE_PRIVATE_KEY: ${{ secrets.CI_STRIPE_PRIVATE_KEY }}
|
|
|
|
INPUT_ENV_STRIPE_CLIENT_ID: ${{ secrets.CI_STRIPE_CLIENT_ID }}
|
|
|
|
INPUT_ENV_STRIPE_WEBHOOK_SECRET: ${{ secrets.CI_STRIPE_WEBHOOK_SECRET }}
|
|
|
|
INPUT_ENV_PAYMENT_FEE_PERCENTAGE: 0.005
|
|
|
|
INPUT_ENV_PAYMENT_FEE_FIXED: 10
|
|
|
|
INPUT_ENV_SAML_DATABASE_URL: postgresql://postgres:@localhost:5432/calendso
|
|
|
|
INPUT_ENV_SAML_ADMINS: pro@example.com
|
2023-05-30 02:05:34 +00:00
|
|
|
INPUT_ENV_NEXTAUTH_URL: http://localhost:3000
|
2023-02-28 10:41:55 +00:00
|
|
|
INPUT_ENV_NEXT_PUBLIC_IS_E2E: 1
|
|
|
|
# INPUT_ENV_EMAIL_FROM: e2e@cal.com
|
|
|
|
# INPUT_ENV_EMAIL_SERVER_HOST: ${{ secrets.CI_EMAIL_SERVER_HOST }}
|
|
|
|
# INPUT_ENV_EMAIL_SERVER_PORT: ${{ secrets.CI_EMAIL_SERVER_PORT }}
|
|
|
|
# INPUT_ENV_EMAIL_SERVER_USER: ${{ secrets.CI_EMAIL_SERVER_USER }}
|
|
|
|
# INPUT_ENV_EMAIL_SERVER_PASSWORD: ${{ secrets.CI_EMAIL_SERVER_PASSWORD }}
|
|
|
|
# INPUT_ENV_MS_GRAPH_CLIENT_ID: xxx
|
|
|
|
# INPUT_ENV_MS_GRAPH_CLIENT_SECRET: xxx
|
|
|
|
# INPUT_ENV_ZOOM_CLIENT_ID: xxx
|
|
|
|
# INPUT_ENV_ZOOM_CLIENT_SECRET: xxx
|
2023-06-26 16:59:39 +00:00
|
|
|
INPUT_ENV_SENDGRID_API_KEY: ${{ secrets.CI_SENDGRID_API_KEY }}
|
|
|
|
INPUT_ENV_SENDGRID_EMAIL: ${{ secrets.CI_SENDGRID_EMAIL }}
|
2023-02-28 10:41:55 +00:00
|
|
|
INPUT_ENV_TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
|
|
INPUT_ENV_TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
create_env_file:
|
2023-05-29 19:54:02 +00:00
|
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
2023-02-28 10:41:55 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-03-15 20:33:54 +00:00
|
|
|
- uses: ./.github/actions/dangerous-git-checkout
|
2023-02-28 10:41:55 +00:00
|
|
|
- uses: ozaytsev86/create-env-file@v1
|
2023-07-13 17:08:50 +00:00
|
|
|
|
2023-02-28 10:41:55 +00:00
|
|
|
with:
|
2023-07-13 17:08:50 +00:00
|
|
|
file-name: ${{ github.workspace }}/${{ env.ENV_FILE_NAME }}
|
2023-05-29 20:22:24 +00:00
|
|
|
- uses: buildjet/cache@v3
|
2023-02-28 10:41:55 +00:00
|
|
|
id: env-cache
|
|
|
|
with:
|
2023-07-13 17:08:50 +00:00
|
|
|
path: ${{ env.ENV_FILE_NAME }}
|
|
|
|
key: env-cache-${{ hashFiles(env.ENV_FILE_NAME) }}
|