-
Notifications
You must be signed in to change notification settings - Fork 13
/
cloudbuild.yaml
70 lines (70 loc) · 3.19 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
steps:
- name: node:18.13.0
entrypoint: npm
args: ["install"]
- name: node:18.13.0
entrypoint: npm
args: ["run", "create-env"]
env:
- 'NEXTAUTH_URL=${_NEXTAUTH_URL}'
- 'NEXTAUTH_SECRET=fHSgo7+BXen9a6gnHrjfQDgscVkiu93gzJ8032au/bo=${_NEXTAUTH_SECRET=fHSgo7+BXen9a6gnHrjfQDgscVkiu93gzJ8032au/bo}'
- 'NEXT_PUBLIC_LINKEDIN_CLIENT_ID=${_NEXT_PUBLIC_LINKEDIN_CLIENT_ID}'
- 'LINKEDIN_CLIENT_SECRET=${_LINKEDIN_CLIENT_SECRET}'
- 'NEXT_PUBLIC_LINKEDIN_REDIRECT_URI=${_NEXT_PUBLIC_LINKEDIN_REDIRECT_URI}'
- 'NEXT_PUBLIC_LINKEDIN_STATE=${_NEXT_PUBLIC_LINKEDIN_STATE}'
- 'GOOGLE_CLIENT_ID=${_GOOGLE_CLIENT_ID}'
- 'GOOGLE_CLIENT_SECRET=${_GOOGLE_CLIENT_SECRET}'
- 'GITHUB_CLIENT_ID=${_GITHUB_CLIENT_ID}'
- 'GITHUB_CLIENT_SECRET=${_GITHUB_CLIENT_SECRET}'
- 'BITBUCKET_CLIENT_ID=${_BITBUCKET_CLIENT_ID}'
- 'BITBUCKET_CLIENT_SECRET=${_BITBUCKET_CLIENT_SECRET}'
- 'BITBUCKET_OAUTH_CLIENT_ID=${_BITBUCKET_OAUTH_CLIENT_ID}'
- 'PROJECT_ID=${_PROJECT_ID}'
- 'PRIVATE_KEY_ID=${_PRIVATE_KEY_ID}'
- 'PRIVATE_KEY=${_PRIVATE_KEY}'
- 'CLIENT_EMAIL=${_CLIENT_EMAIL}'
- 'CLIENT_ID=${_CLIENT_ID}'
- 'AUTH_URI=${_AUTH_URI}'
- 'TOKEN_URI=${_TOKEN_URI}'
- 'AUTH_PROVIDER_X509_CERT_URL=${_AUTH_PROVIDER_X509_CERT_URL}'
- 'CLIENT_X509_CERT_URL=${_CLIENT_X509_CERT_URL}'
- 'PGSQL_USER=${_PGSQL_USER}'
- 'PGSQL_PASSWORD=${_PGSQL_PASSWORD}'
- 'PGSQL_HOST=${_PGSQL_HOST}'
- 'PGSQL_PORT=${_PGSQL_PORT}'
- 'PGSQL_DATABASE=${_PGSQL_DATABASE}'
- 'DATABASE_URL=${_DATABASE_URL}'
- 'NEXT_PUBLIC_RUDDERSTACK_CLIENT_WRITE_KEY=${_NEXT_PUBLIC_RUDDERSTACK_CLIENT_WRITE_KEY}'
- 'NEXT_PUBLIC_RUDDERSTACK_CLIENT_DATAPLANE_URL=${_NEXT_PUBLIC_RUDDERSTACK_CLIENT_DATAPLANE_URL}'
- 'RUDDERSTACK_SERVER_WRITE_KEY=${_RUDDERSTACK_SERVER_WRITE_KEY}'
- 'RUDDERSTACK_SERVER_DATAPLANE_URL=${_RUDDERSTACK_SERVER_DATAPLANE_URL}'
- 'GITLAB_CLIENT_ID=${_GITLAB_CLIENT_ID}'
- 'GITLAB_CLIENT_SECRET=${_GITLAB_CLIENT_SECRET}'
- 'CLARITY_ID=${_CLARITY_ID}'
- 'TOPIC_NAME=${_TOPIC_NAME}'
- 'SUBSCRIPTION_NAME=${_SUBSCRIPTION_NAME}'
- 'GITHUB_APP_ID=${_GITHUB_APP_ID}'
- 'GITHUB_APP_CLIENT_ID=${_GITHUB_APP_CLIENT_ID}'
- 'GITHUB_APP_CLIENT_SECRET=${_GITHUB_APP_CLIENT_SECRET}'
- 'CLOUD_BUILD_TRIGGER_ID=${_CLOUD_BUILD_TRIGGER_ID}'
- 'GITHUB_BASE_URL=${_GITHUB_BASE_URL}'
- 'BITBUCKET_BASE_URL=${_BITBUCKET_BASE_URL}'
- 'GCP_CREDENTIALS=${_GCP_CREDENTIALS}'
- 'SERVER_URL=${_SERVER_URL}'
- 'CLOUD_BUILD_TRIGGER_ID=${_CLOUD_BUILD_TRIGGER_ID}'
- 'CLOUD_BUILD_LOCATION=${_CLOUD_BUILD_LOCATION}'
- 'CLOUD_BUILD_BRANCH_NAME=${_CLOUD_BUILD_BRANCH_NAME}'
- 'DPU_IMAGE_NAME=${_DPU_IMAGE_NAME}'
- 'CLOUD_BUILD_PAT_TRIGGER_ID=${_CLOUD_BUILD_PAT_TRIGGER_ID}'
- 'NEXT_PUBLIC_STRAPI_API_URL=${_NEXT_PUBLIC_STRAPI_API_URL}'
- 'NEXT_PUBLIC_STRAPI_API_TOKEN=${_NEXT_PUBLIC_STRAPI_API_TOKEN}'
- 'NEXT_PUBLIC_PAGE_LIMIT=${_NEXT_PUBLIC_PAGE_LIMIT}'
- 'NEXT_PUBLIC_ENCRYPTION_PUBLIC_KEY=${_NEXT_PUBLIC_ENCRYPTION_PUBLIC_KEY}'
- 'DECRYPTION_PRIVATE_KEY=${_DECRYPTION_PRIVATE_KEY}'
- 'SENDGRID_API_KEY=${_SENDGRID_API_KEY}'
- name: node:18.13.0
entrypoint: npm
args: ["run", "build"]
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'bash'
args: ['-c', 'gcloud config set app/cloud_build_timeout 1600 && gcloud app deploy']