Compare commits

...

163 Commits

Author SHA1 Message Date
actions-user
e760362d9b tag version Cal.com version v4.6.3 2024-10-18 12:02:31 +00:00
actions-user
67e42a3007 Auto updated submodule references 2024-10-18 04:06:18 +00:00
actions-user
d29bfdd58b Auto updated submodule references 2024-10-17 04:05:43 +00:00
actions-user
3e78018356 Auto updated submodule references 2024-10-16 04:05:45 +00:00
actions-user
498d1795cf Auto updated submodule references 2024-10-15 04:05:45 +00:00
actions-user
14d69d1041 Auto updated submodule references 2024-10-14 04:05:53 +00:00
actions-user
7be9f6d8bd Auto updated submodule references 2024-10-13 04:05:36 +00:00
actions-user
4a5f0761d8 Auto updated submodule references 2024-10-12 04:05:20 +00:00
actions-user
32b614cb14 Auto updated submodule references 2024-10-11 04:05:45 +00:00
actions-user
96669f496f Auto updated submodule references 2024-10-10 04:05:45 +00:00
actions-user
d7f26cbf62 Auto updated submodule references 2024-10-09 04:05:34 +00:00
actions-user
d7da108ba5 Auto updated submodule references 2024-10-08 04:05:36 +00:00
actions-user
77b04098b7 Auto updated submodule references 2024-10-07 04:05:43 +00:00
actions-user
2e91bf6774 Auto updated submodule references 2024-10-05 04:05:45 +00:00
actions-user
a0afcfe8ec Auto updated submodule references 2024-10-04 04:05:35 +00:00
actions-user
a1e5b3a496 Auto updated submodule references 2024-10-03 04:05:52 +00:00
actions-user
36ef264504 Auto updated submodule references 2024-10-02 04:05:42 +00:00
actions-user
5f3e5c0e2a Auto updated submodule references 2024-10-01 04:05:44 +00:00
actions-user
8481e84b85 Auto updated submodule references 2024-09-30 04:05:44 +00:00
actions-user
140912f09d Auto updated submodule references 2024-09-29 04:05:13 +00:00
actions-user
a6055fa580 Auto updated submodule references 2024-09-28 04:05:14 +00:00
actions-user
1582093c4d Auto updated submodule references 2024-09-27 04:05:42 +00:00
actions-user
b1c9108c1d Auto updated submodule references 2024-09-26 04:05:45 +00:00
actions-user
0fbf6bde1c Auto updated submodule references 2024-09-25 04:05:51 +00:00
actions-user
db0804657a Auto updated submodule references 2024-09-24 04:05:42 +00:00
actions-user
7d4b90f9ec Auto updated submodule references 2024-09-22 04:05:45 +00:00
actions-user
0b97030fa6 Auto updated submodule references 2024-09-21 04:05:33 +00:00
actions-user
29b6946011 Auto updated submodule references 2024-09-20 04:05:33 +00:00
actions-user
f784c0c71d Auto updated submodule references 2024-09-19 04:05:16 +00:00
actions-user
643aec299c Auto updated submodule references 2024-09-18 04:06:28 +00:00
actions-user
375efda479 Auto updated submodule references 2024-09-17 04:05:39 +00:00
actions-user
15595f3651 Auto updated submodule references 2024-09-16 04:05:37 +00:00
actions-user
dd861996dc Auto updated submodule references 2024-09-14 04:05:08 +00:00
actions-user
27781fa8e6 Auto updated submodule references 2024-09-13 04:05:30 +00:00
actions-user
79d057ffdf Auto updated submodule references 2024-09-12 04:05:28 +00:00
actions-user
51d193fdbc Auto updated submodule references 2024-09-11 04:06:24 +00:00
actions-user
fbaa9a856d Auto updated submodule references 2024-09-10 04:05:34 +00:00
actions-user
47ea747f52 Auto updated submodule references 2024-09-08 04:05:04 +00:00
actions-user
284e29dea1 Auto updated submodule references 2024-09-07 04:05:02 +00:00
actions-user
8aed4cc990 Auto updated submodule references 2024-09-06 04:05:22 +00:00
actions-user
d51a1de290 Auto updated submodule references 2024-09-05 04:05:26 +00:00
actions-user
94d87ee172 Auto updated submodule references 2024-09-04 04:05:31 +00:00
actions-user
c06b0312ba Auto updated submodule references 2024-09-03 04:05:27 +00:00
actions-user
1c4b5c702d Auto updated submodule references 2024-09-01 04:06:14 +00:00
actions-user
81c05450e6 Auto updated submodule references 2024-08-31 04:05:07 +00:00
actions-user
72833a2e89 Auto updated submodule references 2024-08-30 04:19:29 +00:00
actions-user
a5a0b0b24b Auto updated submodule references 2024-08-29 04:19:06 +00:00
actions-user
61dcde88d1 Auto updated submodule references 2024-08-28 04:21:39 +00:00
actions-user
3984ad2e77 Auto updated submodule references 2024-08-27 04:24:06 +00:00
actions-user
8861afc779 Auto updated submodule references 2024-08-26 04:21:49 +00:00
actions-user
7cb2d3466f Auto updated submodule references 2024-08-25 04:22:45 +00:00
actions-user
4116868c49 Auto updated submodule references 2024-08-24 04:21:02 +00:00
actions-user
77f5909110 Auto updated submodule references 2024-08-23 04:21:46 +00:00
actions-user
e6c1248cf2 Auto updated submodule references 2024-08-22 04:20:16 +00:00
actions-user
2799a905e5 Auto updated submodule references 2024-08-21 04:22:28 +00:00
actions-user
56f0713de5 Auto updated submodule references 2024-08-20 04:21:51 +00:00
actions-user
ac34dc3640 Auto updated submodule references 2024-08-19 04:19:29 +00:00
actions-user
36c6771396 Auto updated submodule references 2024-08-17 04:20:42 +00:00
actions-user
8922bf00d7 Auto updated submodule references 2024-08-16 04:19:08 +00:00
actions-user
8373b9ae91 Auto updated submodule references 2024-08-15 04:18:19 +00:00
actions-user
0871d0ee0a Auto updated submodule references 2024-08-14 04:18:41 +00:00
actions-user
5f99883b5c Auto updated submodule references 2024-08-13 04:18:25 +00:00
actions-user
ff467bee61 Auto updated submodule references 2024-08-10 04:19:50 +00:00
actions-user
cf53a4b6d9 Auto updated submodule references 2024-08-09 04:18:45 +00:00
actions-user
493990078f Auto updated submodule references 2024-08-08 04:20:30 +00:00
actions-user
2e50ade5aa Auto updated submodule references 2024-08-07 04:19:29 +00:00
Alex van Andel
64a378b828 Merge pull request #374 from calcom/add-BUILD_STANDALONE-env-var
Update Dockerfile
2024-08-06 12:37:17 +02:00
Alex van Andel
dc129e1e13 Update Dockerfile 2024-08-06 11:32:57 +01:00
actions-user
fdf7333e07 Auto updated submodule references 2024-08-06 04:19:01 +00:00
actions-user
401a1ab394 Auto updated submodule references 2024-08-03 04:17:55 +00:00
actions-user
291c45e9a1 Auto updated submodule references 2024-08-02 04:19:36 +00:00
actions-user
4a61ff3192 Auto updated submodule references 2024-08-01 04:18:31 +00:00
actions-user
c3bf683b73 Auto updated submodule references 2024-07-31 04:04:20 +00:00
actions-user
f708e35105 Auto updated submodule references 2024-07-30 04:05:05 +00:00
actions-user
ebb19089cf Auto updated submodule references 2024-07-29 04:05:11 +00:00
actions-user
6855f71257 Auto updated submodule references 2024-07-27 04:04:40 +00:00
actions-user
e7e86db9a8 Auto updated submodule references 2024-07-26 04:04:50 +00:00
actions-user
c6d49491ad Auto updated submodule references 2024-07-25 04:04:51 +00:00
actions-user
851679e338 Auto updated submodule references 2024-07-24 04:04:49 +00:00
actions-user
95749e3fb3 Auto updated submodule references 2024-07-23 04:04:59 +00:00
Keith Williams
9ef03e7ecd fix: Issue with out-of-sync yarn.lock (#368) 2024-07-22 11:23:22 +02:00
actions-user
0e97ed155c Auto updated submodule references 2024-07-21 04:04:46 +00:00
actions-user
bf01ed29cc Auto updated submodule references 2024-07-20 04:06:02 +00:00
actions-user
c7b142c091 Auto updated submodule references 2024-07-19 04:04:54 +00:00
actions-user
531ad65adb Auto updated submodule references 2024-07-18 04:04:52 +00:00
actions-user
d5fb0a66f9 Auto updated submodule references 2024-07-17 04:04:56 +00:00
actions-user
d68c1ee112 Auto updated submodule references 2024-07-16 04:05:40 +00:00
actions-user
6df597e14c Auto updated submodule references 2024-07-14 04:05:52 +00:00
actions-user
fe11380291 Auto updated submodule references 2024-07-13 04:04:40 +00:00
actions-user
266b8bc42e Auto updated submodule references 2024-07-12 04:05:58 +00:00
Hariom Balhara
7218b23e5c Fix missing embed folder in public (#364) 2024-07-11 10:50:18 +02:00
actions-user
491a6af9f3 Auto updated submodule references 2024-07-11 04:05:17 +00:00
actions-user
84dd6ce88e Auto updated submodule references 2024-07-10 04:06:09 +00:00
actions-user
aa58fe8084 Auto updated submodule references 2024-07-09 04:05:01 +00:00
actions-user
e4d6a0cec2 Auto updated submodule references 2024-07-06 04:04:39 +00:00
actions-user
5399db9668 Auto updated submodule references 2024-07-05 04:05:47 +00:00
actions-user
d93ae71ff4 Auto updated submodule references 2024-07-04 04:04:49 +00:00
actions-user
5352ff10d6 Auto updated submodule references 2024-07-03 04:04:51 +00:00
actions-user
e305599235 Auto updated submodule references 2024-07-02 04:05:47 +00:00
actions-user
345b4bddcd Auto updated submodule references 2024-06-30 04:04:41 +00:00
actions-user
c366daffb2 Auto updated submodule references 2024-06-29 04:05:29 +00:00
actions-user
6ee87e323f Auto updated submodule references 2024-06-28 04:04:51 +00:00
actions-user
acb4345ad6 Auto updated submodule references 2024-06-27 04:05:20 +00:00
actions-user
7ce00f2ee7 Auto updated submodule references 2024-06-26 04:05:04 +00:00
actions-user
d4ecf6d533 Auto updated submodule references 2024-06-25 04:04:52 +00:00
actions-user
98dda480c1 Auto updated submodule references 2024-06-24 04:05:12 +00:00
actions-user
7ce2f43840 Auto updated submodule references 2024-06-23 04:04:38 +00:00
actions-user
1d5dca4aa8 Auto updated submodule references 2024-06-22 04:04:58 +00:00
actions-user
8586bfa0ce Auto updated submodule references 2024-06-21 04:05:17 +00:00
actions-user
fe40ddf340 Auto updated submodule references 2024-06-20 04:04:45 +00:00
actions-user
1737cfa437 Auto updated submodule references 2024-06-19 04:04:51 +00:00
actions-user
948d17d16c Auto updated submodule references 2024-06-18 04:04:49 +00:00
actions-user
45ece65de0 Auto updated submodule references 2024-06-16 04:04:32 +00:00
actions-user
baba2f18b5 Auto updated submodule references 2024-06-15 04:04:49 +00:00
actions-user
4fbd954613 Auto updated submodule references 2024-06-14 04:04:45 +00:00
actions-user
4ca8ede165 Auto updated submodule references 2024-06-13 04:04:47 +00:00
actions-user
ac5b3dc557 Auto updated submodule references 2024-06-12 04:04:46 +00:00
actions-user
7552e8687d Auto updated submodule references 2024-06-11 04:04:47 +00:00
actions-user
b40faca993 Auto updated submodule references 2024-06-09 04:04:50 +00:00
actions-user
815255f03d Auto updated submodule references 2024-06-08 04:04:34 +00:00
actions-user
18e84ac5c8 Auto updated submodule references 2024-06-07 04:05:36 +00:00
actions-user
a24351b736 Auto updated submodule references 2024-06-06 04:04:46 +00:00
actions-user
9cf289a930 Auto updated submodule references 2024-06-05 04:05:48 +00:00
actions-user
8ea2f3fb36 Auto updated submodule references 2024-06-04 04:04:51 +00:00
actions-user
deef0e1097 Auto updated submodule references 2024-06-02 04:04:45 +00:00
actions-user
a8dbdd4399 Auto updated submodule references 2024-06-01 04:04:42 +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
5 changed files with 36 additions and 29 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

View File

@@ -20,7 +20,7 @@ on:
# Uncomment below to allow specific version workflow run # Uncomment below to allow specific version workflow run
# inputs: # inputs:
# version: # version:
# description: 'Version to build' # description: 'Version to build'
# required: true # required: true
# Leaving in example for releases. Initially we simply push to 'latest' # Leaving in example for releases. Initially we simply push to 'latest'
@@ -37,6 +37,12 @@ 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:
- 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it, uncomment below
# - name: Checkout code at specified version # - name: Checkout code at specified version
# uses: actions/checkout@v2 # uses: actions/checkout@v2
@@ -66,7 +72,7 @@ jobs:
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@v5 uses: docker/metadata-action@v5
@@ -93,7 +99,7 @@ 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@v3 uses: docker/setup-buildx-action@v3
with: with:
@@ -118,6 +124,7 @@ jobs:
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 }}
@@ -128,7 +135,7 @@ jobs:
tags="${{ steps.meta.outputs.tags }}" tags="${{ steps.meta.outputs.tags }}"
IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
tag=${ADDR[0]} # Get the first tag tag=${ADDR[0]} # Get the first tag
docker run --rm --network stack \ docker run --rm --network stack \
-p 3000:3000 \ -p 3000:3000 \
-e DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \ -e DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@database/${{ env.POSTGRES_DB }} \
@@ -136,7 +143,7 @@ jobs:
-e NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }} \ -e NEXTAUTH_SECRET=${{ env.NEXTAUTH_SECRET }} \
-e CALENDSO_ENCRYPTION_KEY=${{ env.CALENDSO_ENCRYPTION_KEY }} \ -e CALENDSO_ENCRYPTION_KEY=${{ env.CALENDSO_ENCRYPTION_KEY }} \
$tag & $tag &
server_pid=$! server_pid=$!
@@ -144,7 +151,7 @@ jobs:
sleep 120 sleep 120
echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login echo ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login
for i in {1..60}; do for i in {1..60}; do
echo "Checking server health ($i/60)..." echo "Checking server health ($i/60)..."
response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login) response=$(curl -o /dev/null -s -w "%{http_code}" ${{ env.NEXT_PUBLIC_WEBAPP_URL }}/auth/login)
@@ -157,22 +164,13 @@ jobs:
fi fi
sleep 1 sleep 1
done done
echo "Server health check failed" echo "Server health check failed"
kill $server_pid kill $server_pid
exit 1 exit 1
env: env:
NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA=' NEXTAUTH_SECRET: 'EI4qqDpcfdvf4A+0aQEEx8JjHxHSy4uWiZw/F32K+pA='
CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL' CALENDSO_ENCRYPTION_KEY: '0zfLtY99wjeLnsM7qsa8xsT+Q0oSgnOL'
# - name: Push image
# run: |
# tags="${{ steps.meta.outputs.tags }}"
# IFS=',' read -ra ADDR <<< "$tags" # Convert string to array using ',' as delimiter
# for tag in "${ADDR[@]}"; do
# docker push $tag
# done
- name: Push image - name: Push image
id: docker_push id: docker_push
@@ -180,21 +178,22 @@ jobs:
with: with:
context: ./ context: ./
file: ./Dockerfile file: ./Dockerfile
push: true push: true
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 }} DATABASE_DIRECT_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
if: ${{ !github.event.release.prerelease }} if: ${{ !github.event.release.prerelease }}
- name: Image digest - name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }} run: echo ${{ steps.docker_build.outputs.digest }}
- name: Cleanup - name: Cleanup
run: | run: |
docker compose down docker compose down

View File

@@ -8,29 +8,34 @@ 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 \ 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} \
BUILD_STANDALONE=true
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 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
# Build and make embed servable from web/public/embed folder
RUN yarn turbo run build --filter=@calcom/web RUN yarn --cwd packages/embeds/embed-core workspace @calcom/embed-core run build
RUN yarn --cwd apps/web workspace @calcom/web run build
# RUN yarn plugin import workspace-tools && \ # RUN yarn plugin import workspace-tools && \
# yarn workspaces focus --all --production # yarn workspaces focus --all --production
@@ -43,8 +48,9 @@ ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
ENV NODE_ENV production ENV NODE_ENV production
COPY calcom/package.json calcom/.yarnrc.yml calcom/yarn.lock calcom/turbo.json ./ COPY calcom/package.json calcom/.yarnrc.yml calcom/turbo.json ./
COPY calcom/.yarn ./.yarn COPY calcom/.yarn ./.yarn
COPY --from=builder /calcom/yarn.lock ./yarn.lock
COPY --from=builder /calcom/node_modules ./node_modules COPY --from=builder /calcom/node_modules ./node_modules
COPY --from=builder /calcom/packages ./packages COPY --from=builder /calcom/packages ./packages
COPY --from=builder /calcom/apps/web ./apps/web COPY --from=builder /calcom/apps/web ./apps/web

2
calcom

Submodule calcom updated: 1606272850...55f1019908

View File

@@ -27,6 +27,7 @@ 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}