Compare commits
434 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66275b1859 | ||
|
|
73d32ca516 | ||
|
|
540c2f28b1 | ||
|
|
6fc6977161 | ||
|
|
c2d396a37f | ||
|
|
b20416b7c5 | ||
|
|
be9949c74f | ||
|
|
91c4718897 | ||
|
|
b114c72af5 | ||
|
|
883a5bcccc | ||
|
|
36c0060397 | ||
|
|
da3b1211e6 | ||
|
|
c851c8ae7c | ||
|
|
3f49c16e37 | ||
|
|
b1829d3728 | ||
|
|
7d279b7d0f | ||
|
|
6c30d0dea4 | ||
| 2fb5ba6951 | |||
|
|
afee38ade6 | ||
|
|
619be2651b | ||
|
|
211d89990d | ||
|
|
7d414fc970 | ||
|
|
320f9bd6b6 | ||
|
|
3de73a337c | ||
|
|
2f9db8e1ba | ||
|
|
8772a23697 | ||
| 0c2562a6d1 | |||
|
|
be6595e799 | ||
| d269688e8e | |||
| c94a3bc059 | |||
|
|
a37a3a8ea6 | ||
|
|
48773914c3 | ||
|
|
4d25dc387f | ||
|
|
d680e9dd0c | ||
|
|
61580b4077 | ||
|
|
cd1812c018 | ||
|
|
082c271566 | ||
|
|
16b6ca1d15 | ||
|
|
21988157be | ||
|
|
0da432412d | ||
| 4126000894 | |||
| 3f2e980576 | |||
| ad677f7578 | |||
| 7a2cdfbdc6 | |||
| 429870e999 | |||
| 683bda9917 | |||
| 512dc4c961 | |||
| 77736a4016 | |||
| 292fe3e3b7 | |||
| 4218914507 | |||
| d21ff3e22a | |||
| 4349a7061c | |||
| 139f2ab9e7 | |||
| 2844760af0 | |||
| f3fe888ff2 | |||
| c8b8d1dd0c | |||
| 86d3bcd1eb | |||
| 361262a9da | |||
| 3f405451b8 | |||
|
|
f1971aae35 | ||
|
|
cf5b0b1fef | ||
|
|
8d0298a0fa | ||
|
|
20728bc165 | ||
|
|
590daea528 | ||
|
|
82b90f66d9 | ||
|
|
3b7e2c24fb | ||
|
|
8a335a518c | ||
|
|
4c389a68de | ||
|
|
a6cdd9e644 | ||
|
|
765de200f9 | ||
|
|
7d29b6fde2 | ||
|
|
6ed56fcc1f | ||
|
|
54db06f0a1 | ||
|
|
7330873692 | ||
|
|
42e26b039a | ||
|
|
bce3e9145b | ||
|
|
2c2e303667 | ||
|
|
566b205545 | ||
|
|
2d9e617da7 | ||
|
|
9fdd9b5043 | ||
|
|
95344d5b8e | ||
|
|
66479ad7e3 | ||
|
|
6eba41e7ad | ||
|
|
d7b9851d29 | ||
|
|
9ccc13f524 | ||
|
|
6ec69e18b9 | ||
|
|
5f7a6ce637 | ||
|
|
87a2f7bc50 | ||
|
|
1ce3e40476 | ||
|
|
0e40ef9686 | ||
|
|
6fd9f27bff | ||
|
|
573a462e8d | ||
|
|
0ef4ff6acc | ||
|
|
50dc054e16 | ||
|
|
88f5c5507d | ||
|
|
dc14d4e4fd | ||
|
|
fd3bf3b54d | ||
|
|
11795cb920 | ||
|
|
3d72150f36 | ||
|
|
4a5f8e2ee8 | ||
|
|
85e5fb426b | ||
|
|
c9feaeade4 | ||
|
|
41dfc814a1 | ||
|
|
5517d5bea3 | ||
|
|
7d4c6263ce | ||
|
|
3dab184c3c | ||
|
|
0c3e5c7b75 | ||
|
|
9721b2b32e | ||
|
|
7c899622b5 | ||
| 5bd7a1e636 | |||
|
|
cca794f103 | ||
|
|
9908a2a945 | ||
|
|
6da2131c5f | ||
|
|
abe271f0c9 | ||
|
|
513748fb2e | ||
|
|
4f394b2b8b | ||
|
|
1580fa106c | ||
|
|
3bc7c85842 | ||
|
|
d3d720e982 | ||
|
|
bac2ceb902 | ||
|
|
14cb4d8206 | ||
|
|
5dd3e7693d | ||
|
|
0743108903 | ||
|
|
b558ea9de2 | ||
|
|
00ef51583d | ||
|
|
dad9b467a1 | ||
|
|
6c809a245a | ||
|
|
782b3b6ef4 | ||
|
|
3731f79161 | ||
|
|
cd960074f7 | ||
|
|
b953320385 | ||
|
|
6f52eccc8d | ||
|
|
057cb84882 | ||
|
|
df57468382 | ||
|
|
e5a749e98f | ||
|
|
7cc329a4db | ||
|
|
dd17a75674 | ||
|
|
27354422ce | ||
|
|
fd95e1ea1a | ||
|
|
689173aad3 | ||
|
|
cbb2742c01 | ||
|
|
0ee82978fd | ||
|
|
744c8b70d8 | ||
|
|
e56114742e | ||
|
|
da3d4c63f6 | ||
|
|
1a5378932e | ||
|
|
09aa825856 | ||
|
|
3c5f2abee7 | ||
|
|
aa39828980 | ||
|
|
23cd49150a | ||
|
|
0e389cb966 | ||
|
|
8e5c28328c | ||
|
|
ed05ae211e | ||
|
|
96697981eb | ||
|
|
3589df075e | ||
|
|
6bba996689 | ||
|
|
86430ad2c2 | ||
|
|
35f15d52f4 | ||
|
|
9ea271140d | ||
|
|
24bfe49499 | ||
|
|
4bdf45d95d | ||
|
|
435a008678 | ||
|
|
9ec399714d | ||
|
|
6e4f70891a | ||
|
|
1d4cbf9567 | ||
|
|
f7c83c837f | ||
|
|
debc2edecd | ||
|
|
2b2ccfb356 | ||
|
|
bd9e116745 | ||
|
|
1c7476a152 | ||
|
|
159b3e2356 | ||
|
|
79e4539e01 | ||
|
|
df60908bbc | ||
|
|
383975f0f9 | ||
|
|
93c6871975 | ||
|
|
22001a8878 | ||
|
|
c364a64e63 | ||
|
|
2f632b3119 | ||
|
|
710d46cef8 | ||
|
|
f0d01cd8da | ||
|
|
19c9adbd76 | ||
|
|
0213dc2a22 | ||
|
|
2fb435fd2d | ||
|
|
6ae787e22b | ||
|
|
c54e21192d | ||
|
|
029500340e | ||
|
|
9e3ffd5de8 | ||
|
|
aba5401b61 | ||
|
|
1e9274f0f9 | ||
|
|
3f5d7ba849 | ||
|
|
345a39b7bd | ||
|
|
a2c59acdc4 | ||
|
|
e924ae54e1 | ||
|
|
5378ec41d2 | ||
|
|
5476bd9a4a | ||
|
|
78e0ba9b5f | ||
|
|
6168c7f9d6 | ||
|
|
6ed38b5372 | ||
|
|
dfedb0eec4 | ||
|
|
271a4d801c | ||
|
|
9379603c43 | ||
|
|
28941265b8 | ||
|
|
5a0f173451 | ||
|
|
8eede75e05 | ||
|
|
3b41e46763 | ||
|
|
83f34dee27 | ||
|
|
08afc65949 | ||
|
|
2de4e8aa48 | ||
|
|
b7b98b5d3e | ||
|
|
9c32c08ef6 | ||
|
|
aabd75f7a6 | ||
|
|
9032cf8f75 | ||
|
|
d30254748e | ||
|
|
0fd7de2ea3 | ||
|
|
8359a7cba2 | ||
|
|
8d4ecf49da | ||
|
|
fbb2904534 | ||
|
|
616f05d4fa | ||
|
|
0c1958899c | ||
|
|
eca2d66723 | ||
|
|
6bfb6d167b | ||
|
|
ccef2a34f5 | ||
|
|
bf8f079587 | ||
|
|
6c580d5e1f | ||
|
|
731706be97 | ||
|
|
60248077e8 | ||
|
|
8c0161787d | ||
|
|
8547540643 | ||
|
|
7ae3ca461d | ||
|
|
18bd01cd6e | ||
|
|
dcd94c7c5e | ||
|
|
978afc99a5 | ||
|
|
b4042f9b60 | ||
|
|
4ab0a256b8 | ||
|
|
050efebde5 | ||
|
|
c82644b2ef | ||
|
|
bc0884bf60 | ||
|
|
fca4383ab7 | ||
|
|
4f6371959a | ||
|
|
ab5921510c | ||
|
|
614d4c42af | ||
|
|
bb85805103 | ||
|
|
44cde6509e | ||
|
|
1c059447c6 | ||
|
|
817138162f | ||
|
|
b832e198dd | ||
|
|
ae6080d0d9 | ||
|
|
3e3e05ca8c | ||
|
|
bcdada5a84 | ||
|
|
83bfa2bb05 | ||
|
|
158a79e007 | ||
|
|
98e0b11663 | ||
|
|
2015012a95 | ||
|
|
3b86e41c24 | ||
|
|
7259d54016 | ||
|
|
e3d7f5f52e | ||
|
|
4f99cb80fb | ||
|
|
a6740e010f | ||
|
|
11baf7e709 | ||
|
|
8a1ecee894 | ||
|
|
47ebce517b | ||
|
|
285035de75 | ||
|
|
e8ecebfcc6 | ||
|
|
765b10bafa | ||
|
|
25fc86715d | ||
|
|
b40ab1a5af | ||
|
|
75aa7b1a27 | ||
|
|
c2a9ec833c | ||
|
|
024eb7bbe2 | ||
|
|
1d1b5f8b3e | ||
|
|
bd8535e37d | ||
|
|
5b2f1169bd | ||
|
|
aebdf0223b | ||
|
|
0735b6636d | ||
|
|
9c7b2a95d6 | ||
|
|
9d1472d0dd | ||
|
|
e33e49c4c6 | ||
|
|
bf32a230bb | ||
|
|
38b24fcba0 | ||
|
|
6f727ddb1d | ||
|
|
aee4eca2e7 | ||
|
|
246e3d8558 | ||
|
|
58ea9f16f3 | ||
|
|
889464ecd8 | ||
|
|
e1f725a1c2 | ||
|
|
d062bfe075 | ||
|
|
67e42a3007 | ||
|
|
d29bfdd58b | ||
|
|
3e78018356 | ||
|
|
498d1795cf | ||
|
|
14d69d1041 | ||
|
|
7be9f6d8bd | ||
|
|
4a5f0761d8 | ||
|
|
32b614cb14 | ||
|
|
96669f496f | ||
|
|
d7f26cbf62 | ||
|
|
d7da108ba5 | ||
|
|
77b04098b7 | ||
|
|
2e91bf6774 | ||
|
|
a0afcfe8ec | ||
|
|
a1e5b3a496 | ||
|
|
36ef264504 | ||
|
|
5f3e5c0e2a | ||
|
|
8481e84b85 | ||
|
|
140912f09d | ||
|
|
a6055fa580 | ||
|
|
1582093c4d | ||
|
|
b1c9108c1d | ||
|
|
0fbf6bde1c | ||
|
|
97be50b673 | ||
|
|
db0804657a | ||
|
|
7d4b90f9ec | ||
|
|
0b97030fa6 | ||
|
|
7a298b2de3 | ||
|
|
29b6946011 | ||
|
|
f784c0c71d | ||
|
|
137cc0d59c | ||
|
|
643aec299c | ||
|
|
375efda479 | ||
|
|
15595f3651 | ||
|
|
dd861996dc | ||
|
|
27781fa8e6 | ||
|
|
79d057ffdf | ||
|
|
51d193fdbc | ||
|
|
fbaa9a856d | ||
|
|
47ea747f52 | ||
|
|
284e29dea1 | ||
|
|
8aed4cc990 | ||
|
|
d51a1de290 | ||
|
|
94d87ee172 | ||
|
|
c06b0312ba | ||
|
|
1c4b5c702d | ||
|
|
81c05450e6 | ||
|
|
72833a2e89 | ||
|
|
a5a0b0b24b | ||
|
|
61dcde88d1 | ||
|
|
3984ad2e77 | ||
|
|
8861afc779 | ||
|
|
7cb2d3466f | ||
|
|
4116868c49 | ||
|
|
77f5909110 | ||
|
|
e6c1248cf2 | ||
|
|
2799a905e5 | ||
|
|
56f0713de5 | ||
|
|
ac34dc3640 | ||
|
|
36c6771396 | ||
|
|
8922bf00d7 | ||
|
|
8373b9ae91 | ||
|
|
0871d0ee0a | ||
|
|
5f99883b5c | ||
|
|
ff467bee61 | ||
|
|
cf53a4b6d9 | ||
|
|
493990078f | ||
|
|
2e50ade5aa | ||
|
|
64a378b828 | ||
|
|
dc129e1e13 | ||
|
|
fdf7333e07 | ||
|
|
401a1ab394 | ||
|
|
291c45e9a1 | ||
|
|
4a61ff3192 | ||
|
|
c3bf683b73 | ||
|
|
f708e35105 | ||
|
|
ebb19089cf | ||
|
|
6855f71257 | ||
|
|
e7e86db9a8 | ||
|
|
c6d49491ad | ||
|
|
851679e338 | ||
|
|
95749e3fb3 | ||
|
|
9ef03e7ecd | ||
|
|
0e97ed155c | ||
|
|
bf01ed29cc | ||
|
|
c7b142c091 | ||
|
|
531ad65adb | ||
|
|
d5fb0a66f9 | ||
|
|
d68c1ee112 | ||
|
|
6df597e14c | ||
|
|
fe11380291 | ||
|
|
266b8bc42e | ||
|
|
7218b23e5c | ||
|
|
491a6af9f3 | ||
|
|
84dd6ce88e | ||
|
|
aa58fe8084 | ||
|
|
e4d6a0cec2 | ||
|
|
5399db9668 | ||
|
|
d93ae71ff4 | ||
|
|
5352ff10d6 | ||
|
|
e305599235 | ||
|
|
345b4bddcd | ||
|
|
c366daffb2 | ||
|
|
6ee87e323f | ||
|
|
acb4345ad6 | ||
|
|
7ce00f2ee7 | ||
|
|
d4ecf6d533 | ||
|
|
98dda480c1 | ||
|
|
7ce2f43840 | ||
|
|
1d5dca4aa8 | ||
|
|
8586bfa0ce | ||
|
|
fe40ddf340 | ||
|
|
1737cfa437 | ||
|
|
948d17d16c | ||
|
|
45ece65de0 | ||
|
|
baba2f18b5 | ||
|
|
4fbd954613 | ||
|
|
4ca8ede165 | ||
|
|
ac5b3dc557 | ||
|
|
7552e8687d | ||
|
|
b40faca993 | ||
|
|
815255f03d | ||
|
|
18e84ac5c8 | ||
|
|
a24351b736 | ||
|
|
9cf289a930 | ||
|
|
8ea2f3fb36 | ||
|
|
deef0e1097 | ||
|
|
a8dbdd4399 | ||
|
|
5b7359b5e0 | ||
|
|
81c520559d | ||
|
|
19311509d0 | ||
|
|
522c8cc5f2 | ||
|
|
5e6cb3aa8d | ||
|
|
0564afcec4 | ||
|
|
3df9cdcacb | ||
|
|
c30d0efe1d | ||
|
|
b8d7b7eb29 | ||
|
|
135a22bf5b | ||
|
|
b9d7538819 | ||
|
|
897c399a22 | ||
|
|
7fd6e8118b | ||
|
|
5ba19ae91e | ||
|
|
2c6a90f78e | ||
|
|
4a64514d70 | ||
|
|
59105f87cb | ||
|
|
7924c2051a | ||
|
|
c279c189bc | ||
|
|
8845a7ab38 |
@@ -13,6 +13,7 @@ LICENSE=
|
||||
# NEXT_PUBLIC_APP_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
|
||||
# NEXTAUTH_URL=http://localhost:3000/api/auth
|
||||
@@ -50,6 +51,7 @@ ZOOM_CLIENT_SECRET=
|
||||
|
||||
# E-mail settings
|
||||
# Configures the global From: header whilst sending emails.
|
||||
EMAIL_FROM_NAME=YourOrganizationName
|
||||
EMAIL_FROM=notifications@example.com
|
||||
|
||||
# Configure SMTP settings (@see https://nodemailer.com/smtp/).
|
||||
|
||||
64
.github/workflows/create-release-from-commit.yaml
vendored
Normal file
64
.github/workflows/create-release-from-commit.yaml
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
name: "Create Release Tag"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'The new release tag to create (e.g., v3.8.1)'
|
||||
required: true
|
||||
type: string
|
||||
commit_sha:
|
||||
description: 'The short commit SHA from the calcom submodule to use for this release'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "Tag Release"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- name: "Checkout main branch to get starting point"
|
||||
uses: "actions/checkout@v4"
|
||||
with:
|
||||
token: ${{ secrets.TOKEN_GITEA }}
|
||||
# We check out main, but will create the release commit off of it
|
||||
# without modifying the branch itself.
|
||||
ref: 'main'
|
||||
submodules: true
|
||||
|
||||
- name: "Create Release Commit and Tag"
|
||||
run: |
|
||||
# Configure git user for the commit
|
||||
git config user.email "actions@gitea.local"
|
||||
git config user.name "Gitea Actions"
|
||||
|
||||
echo "Updating submodule to commit ${{ inputs.commit_sha }}..."
|
||||
|
||||
# Navigate into the submodule, fetch latest history, and check out the specific commit.
|
||||
# This modifies the submodule's checked-out version in the working directory.
|
||||
cd calcom
|
||||
git fetch origin
|
||||
git checkout ${{ inputs.commit_sha }}
|
||||
cd ..
|
||||
|
||||
# Stage the change to the submodule pointer.
|
||||
git add calcom
|
||||
|
||||
# Create a NEW commit. This commit is NOT on the main branch.
|
||||
# It's a "dangling" commit that only HEAD is pointing to at this moment.
|
||||
# The parent of this new commit is the latest commit from 'main'.
|
||||
git commit -m "release: Version ${{ inputs.version }} with calcom at ${{ inputs.commit_sha }}"
|
||||
|
||||
# Get the full SHA of the new commit we just created.
|
||||
NEW_COMMIT_SHA=$(git rev-parse HEAD)
|
||||
echo "Created new release commit: $NEW_COMMIT_SHA"
|
||||
|
||||
echo "Creating and pushing tag ${{ inputs.version }}..."
|
||||
|
||||
# Create an annotated tag pointing directly at our new, branchless commit.
|
||||
git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}" $NEW_COMMIT_SHA
|
||||
|
||||
# Push ONLY the new tag to the repository. Git will automatically send
|
||||
# the required commit object ($NEW_COMMIT_SHA) along with the tag.
|
||||
git push origin "${{ inputs.version }}"
|
||||
93
.github/workflows/create-release.yaml
vendored
93
.github/workflows/create-release.yaml
vendored
@@ -1,60 +1,77 @@
|
||||
name: "Create Release"
|
||||
name: "Create Gitea Release"
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
# This workflow is triggered manually from the Gitea Actions UI
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
RELEASE_TAG:
|
||||
description: 'v{Major}.{Minor}.{Patch}'
|
||||
description: 'The release tag to create, formatted as v{Major}.{Minor}.{Patch}'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: "Release"
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
|
||||
# Step 1: Check out the repository source code and its submodules.
|
||||
# The TOKEN_GITEA is used here to grant permission for the later 'git push'.
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v3
|
||||
uses: "actions/checkout@v4"
|
||||
with:
|
||||
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
||||
token: ${{ secrets.TOKEN_GITEA }}
|
||||
submodules: true
|
||||
|
||||
- name: Create branch and tag submodule
|
||||
# Step 2: Create a new release branch, update the submodule to the specified tag,
|
||||
# and push the new branch to the Gitea repository.
|
||||
- name: Create Branch and Update Submodule
|
||||
run: |
|
||||
git config user.email "actions@github.com"
|
||||
git config user.name "actions-user"
|
||||
git submodule update --init --remote
|
||||
# Configure git user for the commit
|
||||
git config user.email "actions@gitea.local"
|
||||
git config user.name "Gitea Actions"
|
||||
|
||||
# Create the new release branch
|
||||
git checkout -b 'release-${{ inputs.RELEASE_TAG }}'
|
||||
|
||||
# Enter the submodule directory, fetch the latest tags, and check out the correct one.
|
||||
# This points the submodule to the specific commit associated with the release tag.
|
||||
(cd calcom && git fetch --tags origin && git checkout 'refs/tags/${{ inputs.RELEASE_TAG }}')
|
||||
|
||||
# Stage and commit the change to the submodule pointer
|
||||
git add calcom
|
||||
git commit -m "tag version Cal.com version ${{ inputs.RELEASE_TAG }}"
|
||||
git commit -m "Update submodule to Cal.com version ${{ inputs.RELEASE_TAG }}"
|
||||
|
||||
# Push the newly created release branch to the remote Gitea repository
|
||||
git push origin 'release-${{ inputs.RELEASE_TAG }}'
|
||||
|
||||
# note: instead of secrets.GITHUB_TOKEN here, we need to use a PAT
|
||||
# so that the release creation triggers the image build workflow
|
||||
- name: "Create release"
|
||||
uses: "actions/github-script@v6"
|
||||
with:
|
||||
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
|
||||
script: |
|
||||
const isPreRelease = '${{ inputs.RELEASE_TAG }}'.includes('-rc');
|
||||
try {
|
||||
const response = await github.rest.repos.createRelease({
|
||||
draft: false,
|
||||
generate_release_notes: true,
|
||||
body: 'For Cal.com release details, see: https://github.com/calcom/cal.com/releases/tag/${{ inputs.RELEASE_TAG }}',
|
||||
name: '${{ inputs.RELEASE_TAG }}',
|
||||
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
|
||||
owner: context.repo.owner,
|
||||
prerelease: isPreRelease,
|
||||
repo: context.repo.repo,
|
||||
tag_name: '${{ inputs.RELEASE_TAG }}',
|
||||
});
|
||||
# Step 3: Call the Gitea API to create the official release object.
|
||||
# This uses the same API token to authorize the action.
|
||||
- name: "Create Gitea Release"
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.TOKEN_GITEA }}
|
||||
GITEA_API_URL: https://git.nethery.dev/api/v1
|
||||
OWNER: ${{ gitea.repository_owner }}
|
||||
REPO: ${{ gitea.repository_name }}
|
||||
run: |
|
||||
# Determine if the tag indicates a pre-release
|
||||
is_prerelease=false
|
||||
if [[ "${{ inputs.RELEASE_TAG }}" == *"-rc"* || "${{ inputs.RELEASE_TAG }}" == *"-beta"* ]]; then
|
||||
is_prerelease=true
|
||||
fi
|
||||
|
||||
core.exportVariable('RELEASE_ID', response.data.id);
|
||||
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
echo "Creating release ${{ inputs.RELEASE_TAG }}..."
|
||||
echo "Is prerelease: $is_prerelease"
|
||||
|
||||
# Use curl to send a POST request to the Gitea API's 'create release' endpoint
|
||||
curl --fail --silent --show-error -L -X POST \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${GITEA_API_URL}/repos/${OWNER}/${REPO}/releases" \
|
||||
-d '{
|
||||
"tag_name": "${{ inputs.RELEASE_TAG }}",
|
||||
"target_commitish": "release-${{ inputs.RELEASE_TAG }}",
|
||||
"name": "${{ inputs.RELEASE_TAG }}",
|
||||
"body": "For Cal.com release details, see: https://github.com/calcom/cal.com/releases/tag/${{ inputs.RELEASE_TAG }}",
|
||||
"prerelease": '${is_prerelease}'
|
||||
}'
|
||||
118
.github/workflows/docker-build-push-dockerhub.yml
vendored
118
.github/workflows/docker-build-push-dockerhub.yml
vendored
@@ -37,12 +37,23 @@ jobs:
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
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
|
||||
# - name: Checkout code at specified version
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# ref: ${{ github.event.inputs.version }}
|
||||
|
||||
- name: Base requirements
|
||||
run: |
|
||||
# packages
|
||||
apk update && apk add --no-cache git docker docker-compose nodejs gpg openssh npm ansible
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -53,29 +64,23 @@ jobs:
|
||||
- name: Log in to the Docker Hub registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
# Username used to log against the Docker registry
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
# Password or personal access token used to log against the Docker registry
|
||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||
# Log out from the Docker registry at the end of a job
|
||||
logout: true # optional, default is true
|
||||
|
||||
- name: Log in to the Github Container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: nnethery
|
||||
password: ${{ secrets.GHCR_TOKEN }}
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
docker.io/calendso/calendso
|
||||
docker.io/calcom/cal.com
|
||||
ghcr.io/calcom/cal.com
|
||||
# Add flavor latest only on full releases, not on pre-releases
|
||||
ghcr.io/nnethery/cal.com
|
||||
nnethery/cal.com
|
||||
flavor: |
|
||||
latest=${{ !github.event.release.prerelease }}
|
||||
|
||||
@@ -87,8 +92,6 @@ jobs:
|
||||
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
|
||||
|
||||
# Temporarily disable ARM build due to runner performance issues
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Start database
|
||||
run: |
|
||||
@@ -113,67 +116,61 @@ jobs:
|
||||
file: ./Dockerfile
|
||||
load: true # Load the image into the Docker daemon
|
||||
push: false # Do not push the image at this stage
|
||||
platforms: linux/amd64
|
||||
platforms: linux/arm64 # Changed from 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 }}
|
||||
|
||||
- name: Test runtime
|
||||
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
|
||||
# - name: Test runtime
|
||||
# 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
|
||||
# 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
|
||||
|
||||
# apk add curl
|
||||
|
||||
# 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
|
||||
@@ -181,11 +178,12 @@ jobs:
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
platforms: linux/arm64 # Changed from 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 }}
|
||||
|
||||
14
.github/workflows/scarf-data-export.yml
vendored
14
.github/workflows/scarf-data-export.yml
vendored
@@ -1,14 +0,0 @@
|
||||
name: Export Scarf data
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
export-scarf-data:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker://scarf.docker.scarf.sh/scarf-sh/scarf-postgres-exporter:latest
|
||||
env:
|
||||
SCARF_API_TOKEN: ${{ secrets.SCARF_API_TOKEN }}
|
||||
SCARF_ENTITY_NAME: Calcom
|
||||
PSQL_CONN_STRING: ${{ secrets.PSQL_CONN_STRING }}
|
||||
41
Dockerfile
41
Dockerfile
@@ -1,50 +1,61 @@
|
||||
FROM node:18 as builder
|
||||
FROM node:18 AS builder
|
||||
|
||||
WORKDIR /calcom
|
||||
|
||||
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
||||
ARG NEXT_PUBLIC_WEBSITE_TERMS_URL
|
||||
ARG NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL
|
||||
ARG CALCOM_TELEMETRY_DISABLED
|
||||
ARG DATABASE_URL
|
||||
ARG NEXTAUTH_SECRET=secret
|
||||
ARG CALENDSO_ENCRYPTION_KEY=secret
|
||||
ARG MAX_OLD_SPACE_SIZE=4096
|
||||
ARG NEXT_PUBLIC_API_V2_URL
|
||||
|
||||
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_WEBSITE_TERMS_URL=$NEXT_PUBLIC_WEBSITE_TERMS_URL \
|
||||
NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL=$NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL \
|
||||
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
|
||||
DATABASE_URL=$DATABASE_URL \
|
||||
DATABASE_DIRECT_URL=$DATABASE_URL \
|
||||
NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
|
||||
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/i18n.json ./
|
||||
COPY calcom/.yarn ./.yarn
|
||||
COPY calcom/apps/web ./apps/web
|
||||
COPY calcom/apps/api/v2 ./apps/api/v2
|
||||
COPY calcom/packages ./packages
|
||||
COPY calcom/tests ./tests
|
||||
|
||||
RUN yarn config set httpTimeout 1200000 && \
|
||||
npx turbo prune --scope=@calcom/web --docker && \
|
||||
yarn install && \
|
||||
yarn db-deploy && \
|
||||
yarn --cwd packages/prisma seed-app-store
|
||||
|
||||
RUN yarn turbo run build --filter=@calcom/web
|
||||
RUN yarn config set httpTimeout 1200000
|
||||
RUN npx turbo prune --scope=@calcom/web --scope=@calcom/trpc --docker
|
||||
RUN yarn install
|
||||
RUN yarn db-deploy
|
||||
RUN yarn --cwd packages/prisma seed-app-store
|
||||
# Build and make embed servable from web/public/embed folder
|
||||
RUN yarn workspace @calcom/trpc run build
|
||||
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 && \
|
||||
# yarn workspaces focus --all --production
|
||||
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
|
||||
|
||||
FROM node:18 as builder-two
|
||||
FROM node:18 AS builder-two
|
||||
|
||||
WORKDIR /calcom
|
||||
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 calcom/i18n.json ./
|
||||
COPY calcom/.yarn ./.yarn
|
||||
COPY --from=builder /calcom/yarn.lock ./yarn.lock
|
||||
COPY --from=builder /calcom/node_modules ./node_modules
|
||||
COPY --from=builder /calcom/packages ./packages
|
||||
COPY --from=builder /calcom/apps/web ./apps/web
|
||||
@@ -58,7 +69,7 @@ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||
|
||||
RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL}
|
||||
|
||||
FROM node:18 as runner
|
||||
FROM node:18 AS runner
|
||||
|
||||
|
||||
WORKDIR /calcom
|
||||
@@ -67,7 +78,7 @@ ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENV NODE_ENV=production
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
|
||||
|
||||
@@ -52,7 +52,7 @@ If you are evaluating Cal.com or running with minimal to no modifications, this
|
||||
1. Clone calcom/docker
|
||||
|
||||
```bash
|
||||
git clone https://github.com/calcom/docker.git
|
||||
git clone --recursive https://github.com/calcom/docker.git
|
||||
```
|
||||
|
||||
2. Change into the directory
|
||||
@@ -219,6 +219,8 @@ Updating these variables is not required for evaluation, but is required for run
|
||||
| --- | --- | --- | --- |
|
||||
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
|
||||
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
|
||||
| NEXT_PUBLIC_WEBSITE_TERMS_URL | custom URL for terms and conditions website | optional | `https://cal.com/terms` |
|
||||
| NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL | custom URL for privacy policy website | optional | `https://cal.com/privacy` |
|
||||
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
|
||||
| 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 | |
|
||||
|
||||
2
calcom
2
calcom
Submodule calcom updated: c87b8b43f9...b3fd4f307f
@@ -1,5 +1,4 @@
|
||||
# Use postgres/example user/password credentials
|
||||
version: '3.8'
|
||||
|
||||
volumes:
|
||||
database-data:
|
||||
@@ -27,7 +26,10 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
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_WEBSITE_TERMS_URL: ${EXT_PUBLIC_WEBSITE_TERMS_URL}
|
||||
NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL: ${NEXT_PUBLIC_WEBSITE_PRIVACY_POLICY_URL}
|
||||
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
|
||||
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
||||
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
||||
|
||||
@@ -23,4 +23,4 @@ services:
|
||||
|
||||
databases:
|
||||
- name: cal-postgres
|
||||
plan: starter
|
||||
plan: basic-1gb
|
||||
|
||||
@@ -10,7 +10,6 @@ fi
|
||||
# Only peform action if $FROM and $TO are different.
|
||||
echo "Replacing all statically built instances of $FROM with $TO."
|
||||
|
||||
find apps/web/.next/ apps/web/public -type f |
|
||||
while read file; do
|
||||
sed -i "s|$FROM|$TO|g" "$file"
|
||||
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do
|
||||
sed -i -e "s|$FROM|$TO|g" "$file"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user