Compare commits

...

300 Commits

Author SHA1 Message Date
actions-user
cbe5a763aa tag version Cal.com version v4.1.6 2024-05-31 13:49:58 +00:00
actions-user
5b7359b5e0 Auto updated submodule references 2024-05-31 04:04:43 +00:00
actions-user
81c520559d Auto updated submodule references 2024-05-30 04:05:37 +00:00
actions-user
19311509d0 Auto updated submodule references 2024-05-29 04:05:34 +00:00
actions-user
522c8cc5f2 Auto updated submodule references 2024-05-28 04:06:08 +00:00
actions-user
5e6cb3aa8d Auto updated submodule references 2024-05-25 04:04:38 +00:00
actions-user
0564afcec4 Auto updated submodule references 2024-05-24 04:04:47 +00:00
actions-user
3df9cdcacb Auto updated submodule references 2024-05-23 04:04:38 +00:00
actions-user
c30d0efe1d Auto updated submodule references 2024-05-22 04:04:49 +00:00
actions-user
b8d7b7eb29 Auto updated submodule references 2024-05-21 04:04:35 +00:00
actions-user
135a22bf5b Auto updated submodule references 2024-05-19 04:05:36 +00:00
actions-user
b9d7538819 Auto updated submodule references 2024-05-18 04:04:28 +00:00
actions-user
897c399a22 Auto updated submodule references 2024-05-17 04:04:54 +00:00
actions-user
7fd6e8118b Auto updated submodule references 2024-05-16 04:04:38 +00:00
actions-user
5ba19ae91e Auto updated submodule references 2024-05-15 04:04:46 +00:00
actions-user
2c6a90f78e Auto updated submodule references 2024-05-14 04:04:31 +00:00
actions-user
4a64514d70 Auto updated submodule references 2024-05-11 04:04:38 +00:00
actions-user
59105f87cb Auto updated submodule references 2024-05-10 04:04:32 +00:00
Keith Williams
7924c2051a fix: Docker builds (#359)
* Testing: Separate RUN commands

* Test with no prune

* Copying v2 API app to test

* Added NEXT_PUBLIC_API_V2_URL

* Added default value for NEXT_PUBLIC_API_V2_URL

* add cleanup step in docker-build-push-dockerhub

* move cleanup and add directory list for directory context

* --WIP

* Setting the CWD for building the web app

* Trying a workspace command to run with --cwd

* Use action to free disk space

* combined the jobs

* Bring back app router

* Clean up

* Removed the extra push image step

* clean up

* Made the checkout more flexible

* Just testing the github.ref

* Reverted changes related to the version input

---------

Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
2024-05-09 13:13:00 -03:00
actions-user
c279c189bc Auto updated submodule references 2024-05-09 04:05:25 +00:00
actions-user
8845a7ab38 Auto updated submodule references 2024-05-08 04:04:15 +00:00
actions-user
fd330b9914 Auto updated submodule references 2024-05-07 04:04:28 +00:00
actions-user
0945517ebc Auto updated submodule references 2024-05-04 04:04:37 +00:00
actions-user
72c221a0c8 Auto updated submodule references 2024-05-03 04:05:54 +00:00
actions-user
64b139d1bc Auto updated submodule references 2024-05-02 04:04:37 +00:00
actions-user
e69f114b45 Auto updated submodule references 2024-05-01 04:04:37 +00:00
actions-user
d5e24a6daa Auto updated submodule references 2024-04-30 04:05:19 +00:00
actions-user
2c1a6395e4 Auto updated submodule references 2024-04-28 04:04:36 +00:00
actions-user
43cce1ba4a Auto updated submodule references 2024-04-27 04:04:25 +00:00
actions-user
3cfe800a24 Auto updated submodule references 2024-04-26 04:04:29 +00:00
actions-user
a8f96a04d1 Auto updated submodule references 2024-04-25 04:05:07 +00:00
actions-user
b0b55b3741 Auto updated submodule references 2024-04-24 04:04:26 +00:00
actions-user
16b3606572 Auto updated submodule references 2024-04-23 04:04:36 +00:00
actions-user
0067efe9a3 Auto updated submodule references 2024-04-21 04:04:35 +00:00
actions-user
1e0e1015c1 Auto updated submodule references 2024-04-20 04:04:27 +00:00
actions-user
9ec138bee0 Auto updated submodule references 2024-04-19 04:04:32 +00:00
actions-user
174dcddada Auto updated submodule references 2024-04-18 04:04:27 +00:00
actions-user
06b8d1f521 Auto updated submodule references 2024-04-17 04:05:35 +00:00
actions-user
10b61462a3 Auto updated submodule references 2024-04-16 04:05:01 +00:00
actions-user
30cdb2e937 Auto updated submodule references 2024-04-15 04:18:42 +00:00
actions-user
553c542548 Auto updated submodule references 2024-04-14 04:13:55 +00:00
actions-user
32124c4b44 Auto updated submodule references 2024-04-13 04:04:16 +00:00
actions-user
daac456353 Auto updated submodule references 2024-04-12 04:04:39 +00:00
actions-user
565a93571e Auto updated submodule references 2024-04-11 04:04:33 +00:00
actions-user
d102ff9976 Auto updated submodule references 2024-04-10 04:04:32 +00:00
actions-user
ab78be5209 Auto updated submodule references 2024-04-09 04:05:27 +00:00
actions-user
83471cbc38 Auto updated submodule references 2024-04-06 04:05:10 +00:00
actions-user
7777573d50 Auto updated submodule references 2024-04-05 04:05:31 +00:00
actions-user
97cb3c70c9 Auto updated submodule references 2024-04-04 04:04:32 +00:00
Syed Ali Shahbaz
2659e73b6a Upgrades action versions 2024-04-03 17:33:34 +04:00
actions-user
89b2dae3c6 Auto updated submodule references 2024-04-03 04:05:25 +00:00
actions-user
ece2425a27 Auto updated submodule references 2024-04-02 04:04:51 +00:00
actions-user
3aec121771 Auto updated submodule references 2024-03-30 04:04:30 +00:00
actions-user
a9f96e87ac Auto updated submodule references 2024-03-29 04:05:13 +00:00
actions-user
01b66f7c0a Auto updated submodule references 2024-03-28 04:04:26 +00:00
actions-user
91bb9e89ee Auto updated submodule references 2024-03-27 04:05:20 +00:00
actions-user
609407a07b Auto updated submodule references 2024-03-26 04:04:30 +00:00
actions-user
fca067bc39 Auto updated submodule references 2024-03-23 04:05:06 +00:00
actions-user
647ca613a8 Auto updated submodule references 2024-03-22 04:04:20 +00:00
actions-user
19496ec37a Auto updated submodule references 2024-03-21 04:05:20 +00:00
actions-user
0c8a1d0482 Auto updated submodule references 2024-03-20 04:04:26 +00:00
actions-user
97579662d9 Auto updated submodule references 2024-03-19 04:04:41 +00:00
actions-user
c775ba8eda Auto updated submodule references 2024-03-17 04:04:33 +00:00
actions-user
e2951d7233 Auto updated submodule references 2024-03-16 04:04:24 +00:00
actions-user
83d3949f51 Auto updated submodule references 2024-03-15 04:05:22 +00:00
actions-user
4a331b89e7 Auto updated submodule references 2024-03-14 04:04:19 +00:00
actions-user
3f7b53cba9 Auto updated submodule references 2024-03-13 04:04:35 +00:00
actions-user
1909d0cbd0 Auto updated submodule references 2024-03-12 04:04:49 +00:00
actions-user
44b070ee39 Auto updated submodule references 2024-03-09 04:04:17 +00:00
actions-user
e0d6d4e894 Auto updated submodule references 2024-03-08 04:04:11 +00:00
actions-user
07c4ff9a1c Auto updated submodule references 2024-03-07 04:04:22 +00:00
actions-user
e9847d64ae Auto updated submodule references 2024-03-06 04:04:39 +00:00
actions-user
d599e5141b Auto updated submodule references 2024-03-05 04:04:30 +00:00
actions-user
a77008e07e Auto updated submodule references 2024-03-03 04:04:13 +00:00
actions-user
34dea39472 Auto updated submodule references 2024-03-02 04:04:20 +00:00
actions-user
8f7466f792 Auto updated submodule references 2024-03-01 04:05:07 +00:00
actions-user
6c25a87fcc Auto updated submodule references 2024-02-29 04:04:34 +00:00
actions-user
a8807a42d9 Auto updated submodule references 2024-02-28 04:05:14 +00:00
actions-user
366c915e22 Auto updated submodule references 2024-02-27 04:05:00 +00:00
actions-user
1f97b6dc1c Auto updated submodule references 2024-02-24 04:04:56 +00:00
actions-user
a20741607c Auto updated submodule references 2024-02-23 04:04:15 +00:00
actions-user
cbf5e2d75e Auto updated submodule references 2024-02-22 04:05:04 +00:00
actions-user
6aeae3c73f Auto updated submodule references 2024-02-21 04:04:12 +00:00
actions-user
9ebd35f90f Auto updated submodule references 2024-02-20 04:05:17 +00:00
actions-user
1004a05eaa Auto updated submodule references 2024-02-17 04:04:52 +00:00
actions-user
614fcc658d Auto updated submodule references 2024-02-16 04:04:38 +00:00
actions-user
c238de8a65 Auto updated submodule references 2024-02-15 04:04:32 +00:00
actions-user
cbbcca72e0 Auto updated submodule references 2024-02-14 04:04:22 +00:00
actions-user
9e4e764779 Auto updated submodule references 2024-02-13 04:04:12 +00:00
actions-user
617d7ec421 Auto updated submodule references 2024-02-12 04:04:30 +00:00
actions-user
12216641af Auto updated submodule references 2024-02-11 04:04:08 +00:00
actions-user
2b0f668f18 Auto updated submodule references 2024-02-10 04:04:51 +00:00
actions-user
924575106e Auto updated submodule references 2024-02-09 04:04:09 +00:00
Omar López
91015a7239 fix: add missing env variables (#325)
* fix: add missing env variables

* Added DATABASE_DIRECT_URL to README

* Updated text

* Added to build-time variable and removed default

* Removed extra connection string

---------

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
2024-02-08 10:06:08 -03:00
actions-user
70ecb7be40 Auto updated submodule references 2024-02-08 04:04:41 +00:00
actions-user
2343fbba23 Auto updated submodule references 2024-02-07 04:04:28 +00:00
actions-user
4324d2cf23 Auto updated submodule references 2024-02-06 04:04:36 +00:00
actions-user
8bf4b08540 Auto updated submodule references 2024-02-05 04:04:12 +00:00
actions-user
519002ff91 Auto updated submodule references 2024-02-04 04:04:11 +00:00
actions-user
3666764226 Auto updated submodule references 2024-02-03 04:04:17 +00:00
actions-user
c4cbe6e4e9 Auto updated submodule references 2024-02-01 04:05:01 +00:00
actions-user
15b7d4b5e4 Auto updated submodule references 2024-01-31 04:04:46 +00:00
actions-user
d2378bf66c Auto updated submodule references 2024-01-30 04:04:12 +00:00
actions-user
aff514fa86 Auto updated submodule references 2024-01-29 04:04:30 +00:00
actions-user
640f2e8cdc Auto updated submodule references 2024-01-28 04:04:21 +00:00
actions-user
dfa2544b6c Auto updated submodule references 2024-01-27 04:04:08 +00:00
actions-user
3200f0345a Auto updated submodule references 2024-01-26 04:05:07 +00:00
actions-user
e215762942 Auto updated submodule references 2024-01-25 04:04:28 +00:00
actions-user
46125e05e3 Auto updated submodule references 2024-01-24 04:04:42 +00:00
Syed Ali Shahbaz
4872e2ccdb Merge pull request #322 from calcom/fix/prerelease-check-build-issues
Attempt to fix pre-release flavor error in build
2024-01-23 17:12:30 +04:00
Syed Ali Shahbaz
2c468dabe8 unrecognized prerelease in flavor--removed 2024-01-23 17:09:46 +04:00
Syed Ali Shahbaz
3319d21c86 Test ~2 2024-01-23 17:01:16 +04:00
Syed Ali Shahbaz
b55ef0ee29 test 2024-01-23 16:57:31 +04:00
actions-user
30f2d169c2 Auto updated submodule references 2024-01-23 04:04:37 +00:00
actions-user
2ae6b6dc76 Auto updated submodule references 2024-01-21 04:04:19 +00:00
actions-user
47df2405ab Auto updated submodule references 2024-01-20 04:04:25 +00:00
actions-user
d83e909f9f Auto updated submodule references 2024-01-19 04:04:35 +00:00
actions-user
b27f452d03 Auto updated submodule references 2024-01-18 04:04:37 +00:00
actions-user
bd43bb65bd Auto updated submodule references 2024-01-17 04:04:30 +00:00
actions-user
62c5ca50a0 Auto updated submodule references 2024-01-16 04:04:32 +00:00
actions-user
e503097a49 Auto updated submodule references 2024-01-15 04:04:38 +00:00
actions-user
aeb60e0a3d Auto updated submodule references 2024-01-13 04:04:15 +00:00
actions-user
fef732420a Auto updated submodule references 2024-01-12 04:04:34 +00:00
actions-user
c5f20f47ab Auto updated submodule references 2024-01-11 04:04:23 +00:00
actions-user
0a561b574b Auto updated submodule references 2024-01-10 04:04:32 +00:00
actions-user
b17d5f4910 Auto updated submodule references 2024-01-09 04:04:39 +00:00
actions-user
9e0d6c150a Auto updated submodule references 2024-01-08 04:04:37 +00:00
actions-user
13fb3c9c1d Auto updated submodule references 2024-01-07 04:04:18 +00:00
actions-user
4ba71f7b9c Auto updated submodule references 2024-01-06 04:04:26 +00:00
actions-user
df4de6092e Auto updated submodule references 2024-01-05 04:04:37 +00:00
actions-user
f101524423 Auto updated submodule references 2024-01-04 04:04:22 +00:00
actions-user
b6c80dfccb Auto updated submodule references 2024-01-03 04:04:45 +00:00
actions-user
20786fc296 Auto updated submodule references 2024-01-02 04:04:28 +00:00
actions-user
66553b3506 Auto updated submodule references 2023-12-31 04:04:21 +00:00
actions-user
cb28a431c8 Auto updated submodule references 2023-12-30 04:04:16 +00:00
actions-user
b6f08fc75c Auto updated submodule references 2023-12-29 04:04:25 +00:00
actions-user
de409f5c9b Auto updated submodule references 2023-12-28 04:04:48 +00:00
actions-user
653cf3924d Auto updated submodule references 2023-12-24 04:04:21 +00:00
actions-user
c73da42f4b Auto updated submodule references 2023-12-23 04:04:25 +00:00
Colin Griffin
dbc8aa7d48 Merge pull request #305 from calcom/fix/skip-pre-release-tag
Identify pre-release in Create Release workflow
2023-12-22 14:12:20 -05:00
actions-user
ae517b2bca Auto updated submodule references 2023-12-22 04:04:32 +00:00
actions-user
61d9746b1c Auto updated submodule references 2023-12-21 04:04:13 +00:00
actions-user
c869387f1a Auto updated submodule references 2023-12-20 04:04:18 +00:00
actions-user
747efb35a6 Auto updated submodule references 2023-12-19 04:04:30 +00:00
actions-user
47ccb38f20 Auto updated submodule references 2023-12-18 04:04:36 +00:00
actions-user
83a87787c6 Auto updated submodule references 2023-12-17 04:04:22 +00:00
actions-user
7d628a5639 Auto updated submodule references 2023-12-16 04:04:24 +00:00
actions-user
fdfc976633 Auto updated submodule references 2023-12-15 04:04:34 +00:00
actions-user
bd85e24f45 Auto updated submodule references 2023-12-14 04:04:28 +00:00
actions-user
62a3e32c4a Auto updated submodule references 2023-12-13 04:04:23 +00:00
actions-user
e23bc10821 Auto updated submodule references 2023-12-12 04:04:26 +00:00
actions-user
dd96115ddf Auto updated submodule references 2023-12-10 04:04:31 +00:00
actions-user
4511b8a5cb Auto updated submodule references 2023-12-09 04:04:29 +00:00
actions-user
7b4a5d4aea Auto updated submodule references 2023-12-08 04:04:36 +00:00
actions-user
f484df66de Auto updated submodule references 2023-12-07 04:04:36 +00:00
actions-user
6ebe2bd8f2 Auto updated submodule references 2023-12-06 04:04:37 +00:00
actions-user
e26a5eecda Auto updated submodule references 2023-12-05 04:04:24 +00:00
actions-user
33c89ec034 Auto updated submodule references 2023-12-04 04:04:29 +00:00
actions-user
11cee9e911 Auto updated submodule references 2023-12-03 04:04:17 +00:00
actions-user
6d9e7c41ff Auto updated submodule references 2023-12-02 04:04:20 +00:00
actions-user
9d56a60d85 Auto updated submodule references 2023-12-01 04:04:22 +00:00
actions-user
47294883d4 Auto updated submodule references 2023-11-30 04:04:29 +00:00
actions-user
3ed7f7b7cb Auto updated submodule references 2023-11-29 04:04:34 +00:00
actions-user
6f45f0e837 Auto updated submodule references 2023-11-28 04:04:15 +00:00
actions-user
2826102030 Auto updated submodule references 2023-11-27 04:04:30 +00:00
actions-user
979e7e36ca Auto updated submodule references 2023-11-26 04:04:08 +00:00
actions-user
c9edbcd537 Auto updated submodule references 2023-11-25 04:04:26 +00:00
actions-user
41ab0167fd Auto updated submodule references 2023-11-24 04:04:28 +00:00
actions-user
e9110c008b Auto updated submodule references 2023-11-23 04:04:29 +00:00
actions-user
244b648cc4 Auto updated submodule references 2023-11-22 04:04:30 +00:00
actions-user
8f8fa9d27c Auto updated submodule references 2023-11-21 04:04:26 +00:00
actions-user
a3454600b6 Auto updated submodule references 2023-11-18 04:04:24 +00:00
actions-user
13d61e9917 Auto updated submodule references 2023-11-17 04:04:21 +00:00
actions-user
a2699d4aa5 Auto updated submodule references 2023-11-16 04:04:31 +00:00
actions-user
de1e01befc Auto updated submodule references 2023-11-15 04:04:25 +00:00
actions-user
6d88667e84 Auto updated submodule references 2023-11-14 04:04:28 +00:00
actions-user
189e57028d Auto updated submodule references 2023-11-13 04:04:19 +00:00
actions-user
7892df8484 Auto updated submodule references 2023-11-12 04:04:07 +00:00
actions-user
7f9fac974c Auto updated submodule references 2023-11-11 04:04:25 +00:00
actions-user
86cd238314 Auto updated submodule references 2023-11-10 04:04:22 +00:00
Syed Ali Shahbaz
bb52fcc61d Add prerelease flavor to meta 2023-11-09 13:01:20 +04:00
Syed Ali Shahbaz
30e01c3741 Only run push if it's not a pre-release 2023-11-09 12:55:18 +04:00
Syed Ali Shahbaz
ae2d7fbd6a mark pre-release when '-rc' in tag 2023-11-09 11:44:24 +04:00
actions-user
49bc08e485 Auto updated submodule references 2023-11-09 04:04:21 +00:00
actions-user
cb34b575a7 Auto updated submodule references 2023-11-08 04:04:08 +00:00
actions-user
ec6ab9ddb6 Auto updated submodule references 2023-11-07 04:04:15 +00:00
actions-user
a93ff42551 Auto updated submodule references 2023-11-04 04:04:12 +00:00
actions-user
7949b536ab Auto updated submodule references 2023-11-03 04:04:24 +00:00
actions-user
b456c44861 Auto updated submodule references 2023-11-02 04:04:20 +00:00
actions-user
caf2d93632 Auto updated submodule references 2023-11-01 04:04:25 +00:00
actions-user
a5eed610aa Auto updated submodule references 2023-10-31 04:04:19 +00:00
actions-user
905a2832f2 Auto updated submodule references 2023-10-29 04:04:27 +00:00
actions-user
592ac2fb0e Auto updated submodule references 2023-10-28 04:04:10 +00:00
actions-user
0f1cf770cc Auto updated submodule references 2023-10-27 04:04:18 +00:00
actions-user
8d8b18e5bd Auto updated submodule references 2023-10-26 04:04:15 +00:00
actions-user
736dfecc0c Auto updated submodule references 2023-10-25 04:04:34 +00:00
actions-user
4679fc0ddf Auto updated submodule references 2023-10-24 04:04:20 +00:00
actions-user
5956e7f1a0 Auto updated submodule references 2023-10-23 04:04:20 +00:00
actions-user
d8cb522055 Auto updated submodule references 2023-10-21 04:04:32 +00:00
actions-user
a728ac7339 Auto updated submodule references 2023-10-20 04:04:24 +00:00
actions-user
fcf45975df Auto updated submodule references 2023-10-19 04:04:23 +00:00
actions-user
2a5375f4ea Auto updated submodule references 2023-10-18 04:04:20 +00:00
actions-user
b3a3679a6b Auto updated submodule references 2023-10-17 04:04:23 +00:00
Colin Griffin
9fdfca486a move cleanup to last 2023-10-15 12:56:35 -04:00
Colin Griffin
54400a2161 Merge pull request #298 from calcom/fix/multi-image-push
Reuse docker-build-push action to push multiple images
2023-10-15 10:09:03 -04:00
Colin Griffin
e0521c140d cleanup comments 2023-10-15 09:54:19 -04:00
Colin Griffin
dcb66ee989 Reuse docker-build-push action to push multiple images 2023-10-15 09:52:06 -04:00
Colin Griffin
c0f7cf77cb Merge pull request #297 from calcom/fix/push-all-tags-to-dockerhub
Push all tags not just first one in build & push workflow
2023-10-15 09:18:23 -04:00
Syed Ali Shahbaz
c4d6e766fa push all tags not just first one 2023-10-15 17:07:54 +04:00
actions-user
dbbda43758 Auto updated submodule references 2023-10-15 04:04:21 +00:00
actions-user
054b49abde Auto updated submodule references 2023-10-14 04:04:23 +00:00
actions-user
1fdd941c0a Auto updated submodule references 2023-10-13 04:04:31 +00:00
actions-user
cba7f20546 Auto updated submodule references 2023-10-12 04:04:23 +00:00
actions-user
8d58343954 Auto updated submodule references 2023-10-11 04:04:24 +00:00
actions-user
8543c18079 Auto updated submodule references 2023-10-10 04:04:34 +00:00
actions-user
47d0b7e9bf Auto updated submodule references 2023-10-09 04:04:23 +00:00
actions-user
db874ff8b1 Auto updated submodule references 2023-10-07 04:04:27 +00:00
actions-user
b49cf5cd28 Auto updated submodule references 2023-10-06 04:04:22 +00:00
actions-user
0acdb4b98a Auto updated submodule references 2023-10-05 04:04:24 +00:00
actions-user
d282ff71d1 Auto updated submodule references 2023-10-04 04:04:35 +00:00
Colin Griffin
f89ea705e2 Merge pull request #293 from calcom/add-runtime-check
Add runtime check, runtime logs and build logs
2023-10-03 14:57:09 -07:00
actions-user
fca3070045 Auto updated submodule references 2023-10-03 04:04:26 +00:00
actions-user
f32bf8b6da Auto updated submodule references 2023-10-02 04:04:30 +00:00
actions-user
5d58199abc Auto updated submodule references 2023-10-01 04:04:13 +00:00
actions-user
7cc495d54e Auto updated submodule references 2023-09-30 04:04:24 +00:00
Syed Ali Shahbaz
87379fea88 remove unnecessary remnant 2023-09-29 13:58:38 +04:00
Syed Ali Shahbaz
34c213f56a Ready 2023-09-29 13:46:44 +04:00
Syed Ali Shahbaz
04e4c64efe comment push to dockerhub for testing 2023-09-29 12:58:39 +04:00
Syed Ali Shahbaz
a23fd8b12a checkout spcific version 2023-09-29 12:58:02 +04:00
Syed Ali Shahbaz
4be3f45228 fix push step 2023-09-29 12:23:21 +04:00
Syed Ali Shahbaz
d17064f67f split build and push image and test in between 2023-09-29 11:55:30 +04:00
actions-user
aad1382418 Auto updated submodule references 2023-09-29 04:04:35 +00:00
Syed Ali Shahbaz
f7885eed69 Allow pushing to Dockerhub 2023-09-28 23:45:24 +04:00
Syed Ali Shahbaz
008ddd57f3 Remove redundant steps of logging 2023-09-28 22:01:49 +04:00
Syed Ali Shahbaz
0048a58b26 Reduce number of attempts for server health check 2023-09-28 21:40:34 +04:00
Syed Ali Shahbaz
89bd10bd84 debug response 2023-09-28 21:40:09 +04:00
Syed Ali Shahbaz
ff0db3a97c Redirect is also representative of healthy 2023-09-28 20:40:02 +04:00
Syed Ali Shahbaz
bd8a941f50 Publish on port 3000 for accessibility by health check 2023-09-28 19:32:36 +04:00
Syed Ali Shahbaz
8353418232 verbose curl req 2023-09-28 19:08:39 +04:00
Syed Ali Shahbaz
26784d6969 debug curl call endpoint 2023-09-28 18:48:16 +04:00
Syed Ali Shahbaz
a1d56a1f17 Add server startup wait time~2mins 2023-09-28 18:22:49 +04:00
Syed Ali Shahbaz
92512fd052 use next-webapp-url for curl req domain 2023-09-28 18:02:44 +04:00
Syed Ali Shahbaz
933f4722e9 Increase timeout for testing 2023-09-28 17:20:02 +04:00
Syed Ali Shahbaz
4870434673 Increase health check time limit to allow boot 2023-09-28 16:48:04 +04:00
Syed Ali Shahbaz
bcdff6eeb0 add health check 2023-09-28 16:29:35 +04:00
Syed Ali Shahbaz
1cb1dec45b duh 2023-09-28 14:42:34 +04:00
Syed Ali Shahbaz
316124258f Add nextauth and calendso encryption to test runtime 2023-09-28 14:20:21 +04:00
actions-user
44997263f1 Auto updated submodule references 2023-09-28 04:04:21 +00:00
Syed Ali Shahbaz
83d34f8df5 specify 'database' 2023-09-27 20:32:48 +04:00
Syed Ali Shahbaz
42e1b7260a Remove WIP 2023-09-27 20:09:01 +04:00
Syed Ali Shahbaz
d4e0fcecb9 Specify stack as network, as per docker-compose file 2023-09-27 20:06:18 +04:00
Syed Ali Shahbaz
5dbfc57d3c Revert prev 2023-09-27 20:02:20 +04:00
Syed Ali Shahbaz
5f2a14bc63 Add a network to specify where the DB is 2023-09-27 19:58:41 +04:00
Syed Ali Shahbaz
a049989155 revert prev commit 2023-09-27 19:51:07 +04:00
Syed Ali Shahbaz
ff56a03fb6 specify db container in test runtime 2023-09-27 19:37:29 +04:00
Syed Ali Shahbaz
9a74219dfd Update image name in test runtime as digest isn't found/recognized 2023-09-27 18:55:07 +04:00
Syed Ali Shahbaz
2b54576f05 Add load true to load image to local docker env 2023-09-27 18:28:43 +04:00
Syed Ali Shahbaz
fe5c310556 temporary block push to dockerhub for local testing purposes 2023-09-27 18:06:32 +04:00
Syed Ali Shahbaz
d299d9ae5e Add logging to build and runtime steps 2023-09-27 14:55:01 +04:00
Syed Ali Shahbaz
fa788cf600 Adds test runtime check 2023-09-27 14:45:08 +04:00
actions-user
7aea26c8a6 Auto updated submodule references 2023-09-27 04:04:34 +00:00
actions-user
0d690c922a Auto updated submodule references 2023-09-26 04:04:26 +00:00
actions-user
3c74585d48 Auto updated submodule references 2023-09-23 04:04:20 +00:00
actions-user
083867dc77 Auto updated submodule references 2023-09-22 04:04:20 +00:00
actions-user
06dd7f0821 Auto updated submodule references 2023-09-21 04:04:16 +00:00
actions-user
74fadbc4cc Auto updated submodule references 2023-09-20 04:04:14 +00:00
actions-user
838ffae9a6 Auto updated submodule references 2023-09-19 04:04:34 +00:00
actions-user
5b159a7fb4 Auto updated submodule references 2023-09-16 04:04:12 +00:00
actions-user
3ab1d7055e Auto updated submodule references 2023-09-15 04:04:27 +00:00
actions-user
5c57c20d20 Auto updated submodule references 2023-09-14 04:04:24 +00:00
actions-user
98fd99bced Auto updated submodule references 2023-09-13 04:04:30 +00:00
Colin Griffin
c17606cc0a Merge pull request #283 from marcmontu/fix/build-missing-files
fix: add missing tests folder required for build
2023-09-12 09:37:28 -04:00
actions-user
064b31a641 Auto updated submodule references 2023-09-12 04:04:24 +00:00
Marc Rubio
769c1d91ee fix: add missing tests folder required for build
cal.com v3.2.9 has a new tests folder. The Docker image build fails without it.
2023-09-11 16:25:26 +10:00
actions-user
dffaae7cce Auto updated submodule references 2023-09-11 04:04:10 +00:00
actions-user
44c0ba5eaf Auto updated submodule references 2023-09-09 04:04:11 +00:00
actions-user
e6586b196b Auto updated submodule references 2023-09-08 04:04:31 +00:00
actions-user
abcbf1a5de Auto updated submodule references 2023-09-07 04:04:32 +00:00
actions-user
51ad2ea126 Auto updated submodule references 2023-09-06 04:04:06 +00:00
actions-user
12caf3f4bf Auto updated submodule references 2023-09-05 04:04:36 +00:00
actions-user
2265cf05f3 Auto updated submodule references 2023-09-02 04:04:32 +00:00
actions-user
d8b94d4335 Auto updated submodule references 2023-09-01 04:04:26 +00:00
actions-user
8db8b631da Auto updated submodule references 2023-08-31 04:04:14 +00:00
actions-user
0e6fab7bf7 Auto updated submodule references 2023-08-30 04:04:14 +00:00
actions-user
2b0bd7896e Auto updated submodule references 2023-08-29 04:04:32 +00:00
actions-user
a2a9d0aca1 Auto updated submodule references 2023-08-26 04:04:22 +00:00
actions-user
59bed07eca Auto updated submodule references 2023-08-25 04:04:40 +00:00
actions-user
e9673bd1a4 Auto updated submodule references 2023-08-24 04:04:24 +00:00
actions-user
780b708d49 Auto updated submodule references 2023-08-23 04:04:29 +00:00
actions-user
915c9f7837 Auto updated submodule references 2023-08-22 04:04:18 +00:00
actions-user
775eb7c83b Auto updated submodule references 2023-08-20 04:04:23 +00:00
actions-user
1b94b0a4cc Auto updated submodule references 2023-08-19 04:04:29 +00:00
actions-user
bc9d85b650 Auto updated submodule references 2023-08-18 04:04:07 +00:00
actions-user
14564d06d8 Auto updated submodule references 2023-08-17 04:04:26 +00:00
actions-user
7fd57f9097 Auto updated submodule references 2023-08-16 04:04:08 +00:00
actions-user
a32eddc4d4 Auto updated submodule references 2023-08-15 04:04:15 +00:00
actions-user
2581a9de2a Auto updated submodule references 2023-08-14 04:04:32 +00:00
actions-user
82d0155b4e Auto updated submodule references 2023-08-13 04:04:17 +00:00
actions-user
84d500c89c Auto updated submodule references 2023-08-12 04:04:06 +00:00
actions-user
6c323097b6 Auto updated submodule references 2023-08-11 04:04:07 +00:00
7 changed files with 138 additions and 44 deletions

View File

@@ -13,6 +13,7 @@ LICENSE=
# NEXT_PUBLIC_APP_URL=http://localhost:3000 # NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000 NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
NEXT_PUBLIC_API_V2_URL=http://localhost:5555/api/v2
# Configure NEXTAUTH_URL manually if needed, otherwise it will resolve to {NEXT_PUBLIC_WEBAPP_URL}/api/auth # Configure NEXTAUTH_URL manually if needed, otherwise it will resolve to {NEXT_PUBLIC_WEBAPP_URL}/api/auth
# NEXTAUTH_URL=http://localhost:3000/api/auth # NEXTAUTH_URL=http://localhost:3000/api/auth
@@ -32,6 +33,9 @@ POSTGRES_PASSWORD=magical_password
POSTGRES_DB=calendso POSTGRES_DB=calendso
DATABASE_HOST=database:5432 DATABASE_HOST=database:5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
# Needed to run migrations while using a connection pooler like PgBouncer
# Use the same one as DATABASE_URL if you're not using a connection pooler
DATABASE_DIRECT_URL=${DATABASE_URL}
GOOGLE_API_CREDENTIALS={} GOOGLE_API_CREDENTIALS={}
# Set this to '1' if you don't want Cal to collect anonymous usage # Set this to '1' if you don't want Cal to collect anonymous usage

View File

@@ -39,6 +39,7 @@ jobs:
with: with:
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}" github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
script: | script: |
const isPreRelease = '${{ inputs.RELEASE_TAG }}'.includes('-rc');
try { try {
const response = await github.rest.repos.createRelease({ const response = await github.rest.repos.createRelease({
draft: false, draft: false,
@@ -47,7 +48,7 @@ jobs:
name: '${{ inputs.RELEASE_TAG }}', name: '${{ inputs.RELEASE_TAG }}',
target_commitish: 'release-${{ inputs.RELEASE_TAG }}', target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
owner: context.repo.owner, owner: context.repo.owner,
prerelease: false, prerelease: isPreRelease,
repo: context.repo.repo, repo: context.repo.repo,
tag_name: '${{ inputs.RELEASE_TAG }}', tag_name: '${{ inputs.RELEASE_TAG }}',
}); });

View File

@@ -17,6 +17,11 @@ on:
- completed - completed
# Allow running workflow manually from the Actions tab # Allow running workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
# Uncomment below to allow specific version workflow run
# inputs:
# version:
# description: 'Version to build'
# required: true
# Leaving in example for releases. Initially we simply push to 'latest' # Leaving in example for releases. Initially we simply push to 'latest'
# on: # on:
@@ -32,16 +37,27 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# Free about 4.5 GB, elminating our disk space issues
tool-cache: true
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it, uncomment below
# - name: Checkout code at specified version
# uses: actions/checkout@v2
# with:
# ref: ${{ github.event.inputs.version }}
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Git submodule update - name: Git submodule update
run: | run: |
git submodule update --init git submodule update --init
- name: Log in to the Docker Hub registry - name: Log in to the Docker Hub registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
# Username used to log against the Docker registry # Username used to log against the Docker registry
username: ${{ secrets.DOCKER_HUB_USERNAME }} username: ${{ secrets.DOCKER_HUB_USERNAME }}
@@ -51,20 +67,23 @@ jobs:
logout: true # optional, default is true logout: true # optional, default is true
- name: Log in to the Github Container registry - name: Log in to the Github Container registry
uses: docker/login-action@v2 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v5
with: with:
images: | images: |
docker.io/calendso/calendso docker.io/calendso/calendso
docker.io/calcom/cal.com docker.io/calcom/cal.com
ghcr.io/calcom/cal.com ghcr.io/calcom/cal.com
# Add flavor latest only on full releases, not on pre-releases
flavor: |
latest=${{ !github.event.release.prerelease }}
- name: Copy env - name: Copy env
run: | run: |
@@ -80,9 +99,9 @@ jobs:
- name: Start database - name: Start database
run: | run: |
docker compose up -d database docker compose up -d database
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v3
with: with:
driver-opts: | driver-opts: |
network=container:database network=container:database
@@ -91,30 +110,90 @@ jobs:
# config-inline: | # config-inline: |
# [worker.oci] # [worker.oci]
# max-parallelism = 1 # max-parallelism = 1
- name: Build and push image - name: Build image
id: docker_build id: docker_build
uses: docker/build-push-action@v4 uses: docker/build-push-action@v5
with: with:
context: ./ context: ./
file: ./Dockerfile file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }} load: true # Load the image into the Docker daemon
push: false # Do not push the image at this stage
platforms: linux/amd64 platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }} NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
NEXT_PUBLIC_API_V2_URL=${{ env.NEXT_PUBLIC_API_V2_URL }}
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }} NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }} NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }}
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
# - name: Build with docker compose
# run: | - name: Test runtime
# DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} calcom run: |
tags="${{ steps.meta.outputs.tags }}"
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
tag=${ADDR[0]} # Get the first tag
docker run --rm --network stack \
-p 3000:3000 \
-e DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
-e DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
-e NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }} \
-e CALENDSO_ENCRYPTION_KEY=${{ env.CALENDSO_ENCRYPTION_KEY }} \
$tag &
server_pid=$!
echo "Waiting for the server to start..."
sleep 120
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
for i in {1..60}; do
echo "Checking server health ($i/60)..."
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
echo "HTTP Status Code: $response"
if [[ "$response" == "200" ]] || [[ "$response" == "307" ]]; then
echo "Server is healthy"
# Now, shutdown the server
kill $server_pid
exit 0
fi
sleep 1
done
echo "Server health check failed"
kill $server_pid
exit 1
env:
NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA='
CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL'
- name: Push image
id: docker_push
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
NEXT_PUBLIC_API_V2_URL=${{ env.NEXT_PUBLIC_API_V2_URL }}
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }}
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
if: ${{ !github.event.release.prerelease }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Cleanup - name: Cleanup
run: | run: |
docker compose down docker compose down
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -8,11 +8,14 @@ ARG DATABASE_URL
ARG NEXTAUTH_SECRET=secret ARG NEXTAUTH_SECRET=secret
ARG CALENDSO_ENCRYPTION_KEY=secret ARG CALENDSO_ENCRYPTION_KEY=secret
ARG MAX_OLD_SPACE_SIZE=4096 ARG MAX_OLD_SPACE_SIZE=4096
ARG NEXT_PUBLIC_API_V2_URL
ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
NEXT_PUBLIC_API_V2_URL=$NEXT_PUBLIC_API_V2_URL \
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \ NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \ CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
DATABASE_URL=$DATABASE_URL \ DATABASE_URL=$DATABASE_URL \
DATABASE_DIRECT_URL=$DATABASE_URL \
NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \ NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \ CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE} NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
@@ -20,15 +23,16 @@ ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh ./ COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh ./
COPY calcom/.yarn ./.yarn COPY calcom/.yarn ./.yarn
COPY calcom/apps/web ./apps/web COPY calcom/apps/web ./apps/web
COPY calcom/apps/api/v2 ./apps/api/v2
COPY calcom/packages ./packages COPY calcom/packages ./packages
COPY calcom/tests ./tests
RUN yarn config set httpTimeout 1200000 && \ RUN yarn config set httpTimeout 1200000
npx turbo prune --scope=@calcom/web --docker && \ RUN npx turbo prune --scope=@calcom/web --docker
yarn install && \ RUN yarn install
yarn db-deploy && \ RUN yarn db-deploy
yarn --cwd packages/prisma seed-app-store RUN yarn --cwd packages/prisma seed-app-store
RUN yarn --cwd apps/web workspace @calcom/web run build
RUN yarn turbo run build --filter=@calcom/web
# RUN yarn plugin import workspace-tools && \ # RUN yarn plugin import workspace-tools && \
# yarn workspaces focus --all --production # yarn workspaces focus --all --production
@@ -71,4 +75,4 @@ EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \ HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
CMD wget --spider http://localhost:3000 || exit 1 CMD wget --spider http://localhost:3000 || exit 1
CMD ["/calcom/scripts/start.sh"] CMD ["/calcom/scripts/start.sh"]

View File

@@ -67,24 +67,24 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
cp .env.example .env cp .env.example .env
``` ```
Most configurations can be left as-is, but for configuration options see [Important Run-time variables](#important-run-time-variables) below. Most configurations can be left as-is, but for configuration options see [Important Run-time variables](#important-run-time-variables) below.
Update the appropriate values in your .env file, then proceed. Update the appropriate values in your .env file, then proceed.
4. (optional) Pre-Pull the images by running the following command: 4. (optional) Pre-Pull the images by running the following command:
```bash ```bash
docker compose pull docker compose pull
``` ```
This will use the default image locations as specified by `image:` in the docker-compose.yaml file. This will use the default image locations as specified by `image:` in the docker-compose.yaml file.
Note: To aid with support, by default Scarf.sh is used as registry proxy for download metrics. Note: To aid with support, by default Scarf.sh is used as registry proxy for download metrics.
5. Start Cal.com via docker compose 5. Start Cal.com via docker compose
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio: (Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
```bash ```bash
docker compose up -d docker compose up -d
``` ```
@@ -139,7 +139,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
cd calcom-docker cd calcom-docker
``` ```
3. Update the calcom submodule. 3. Update the calcom submodule.
```bash ```bash
git submodule update --remote --init git submodule update --remote --init
@@ -151,7 +151,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
For configuration options see [Build-time variables](#build-time-variables) below. Update the appropriate values in your .env file, then proceed. For configuration options see [Build-time variables](#build-time-variables) below. Update the appropriate values in your .env file, then proceed.
5. Build the Cal.com docker image: 5. Build the Cal.com docker image:
Note: Due to application configuration requirements, an available database is currently required during the build process. Note: Due to application configuration requirements, an available database is currently required during the build process.
@@ -206,20 +206,22 @@ These variables must also be provided at runtime
| NEXTAUTH_URL | Location of the auth server. By default, this is the Cal.com docker instance itself. | optional | `{NEXT_PUBLIC_WEBAPP_URL}/api/auth` | | NEXTAUTH_URL | Location of the auth server. By default, this is the Cal.com docker instance itself. | optional | `{NEXT_PUBLIC_WEBAPP_URL}/api/auth` |
| NEXTAUTH_SECRET | must match build variable | required | `secret` | | NEXTAUTH_SECRET | must match build variable | required | `secret` |
| CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` | | CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` |
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` | | DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
### Build-time variables ### Build-time variables
If building the image yourself, these variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image. If building the image yourself, these variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com) Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com)
| Variable | Description | Required | Default | | Variable | Description | Required | Default |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` | | NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | | | NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | | | CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` | | DATABASE_URL | database url with credentials - if using a connection pooler, this setting should point there | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
| DATABASE_DIRECT_URL | direct database url with credentials if using a connection pooler (e.g. PgBouncer, Prisma Accelerate, etc.) | optional | |
| NEXTAUTH_SECRET | Cookie encryption key | required | `secret` | | NEXTAUTH_SECRET | Cookie encryption key | required | `secret` |
| CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` | | CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` |
@@ -249,7 +251,7 @@ Certain versions may have trouble creating a user if the field `metadata` is emp
If you experience this error, it may be the way the default Auth callback in the server is using the WEBAPP_URL as a base url. The container does not necessarily have access to the same DNS as your local machine, and therefor needs to be configured to resolve to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth`, to help the backend loop back to itself. If you experience this error, it may be the way the default Auth callback in the server is using the WEBAPP_URL as a base url. The container does not necessarily have access to the same DNS as your local machine, and therefor needs to be configured to resolve to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth`, to help the backend loop back to itself.
``` ```
docker-calcom-1 | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR] docker-calcom-1 | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR]
docker-calcom-1 | @calcom/web:start: https://next-auth.js.org/errors#client_fetch_error request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost { docker-calcom-1 | @calcom/web:start: https://next-auth.js.org/errors#client_fetch_error request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost {
docker-calcom-1 | @calcom/web:start: error: { docker-calcom-1 | @calcom/web:start: error: {
docker-calcom-1 | @calcom/web:start: message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost', docker-calcom-1 | @calcom/web:start: message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost',

2
calcom

Submodule calcom updated: a49c34e733...5602f7bd95

View File

@@ -27,11 +27,13 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
args: args:
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL} NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
NEXT_PUBLIC_API_V2_URL: ${NEXT_PUBLIC_API_V2_URL}
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT} NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED} CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET} NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY} CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
DATABASE_URL: ${DATABASE_URL} DATABASE_URL: ${DATABASE_URL}
DATABASE_DIRECT_URL: ${DATABASE_URL}
network: stack network: stack
restart: always restart: always
networks: networks:
@@ -41,6 +43,7 @@ services:
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- DATABASE_DIRECT_URL=${DATABASE_URL}
depends_on: depends_on:
- database - database
@@ -55,6 +58,7 @@ services:
env_file: .env env_file: .env
environment: environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB} - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
- DATABASE_DIRECT_URL=${DATABASE_URL}
depends_on: depends_on:
- database - database
command: command: