Compare commits

...

185 Commits

Author SHA1 Message Date
actions-user
680d1c3314 tag version Cal.com version v3.4.6 2023-11-02 11:34:58 +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
actions-user
4a6d1b4732 Auto updated submodule references 2023-08-10 04:04:09 +00:00
actions-user
3279928c9d Auto updated submodule references 2023-08-09 04:05:04 +00:00
actions-user
01ac9f4ff2 Auto updated submodule references 2023-08-08 04:04:07 +00:00
actions-user
c2f7e69a59 Auto updated submodule references 2023-08-06 04:04:15 +00:00
actions-user
546ef1305e Auto updated submodule references 2023-08-05 04:04:18 +00:00
actions-user
d0c7668d34 Auto updated submodule references 2023-08-04 04:04:17 +00:00
actions-user
68765805be Auto updated submodule references 2023-08-03 04:04:25 +00:00
actions-user
6a15aaa42f Auto updated submodule references 2023-08-02 04:04:28 +00:00
actions-user
c27de4875c Auto updated submodule references 2023-08-01 04:04:18 +00:00
actions-user
71c0c84383 Auto updated submodule references 2023-07-30 04:04:16 +00:00
actions-user
e94c50a224 Auto updated submodule references 2023-07-29 04:04:03 +00:00
actions-user
7106728280 Auto updated submodule references 2023-07-28 04:04:09 +00:00
actions-user
c24bc644e4 Auto updated submodule references 2023-07-27 04:04:21 +00:00
actions-user
2ab14ab1ba Auto updated submodule references 2023-07-26 04:04:06 +00:00
actions-user
92eb7b1b38 Auto updated submodule references 2023-07-25 04:04:38 +00:00
actions-user
f4a717e9b8 Auto updated submodule references 2023-07-24 04:04:26 +00:00
actions-user
208bd9c4b9 Auto updated submodule references 2023-07-22 04:04:34 +00:00
actions-user
8c6594216f Auto updated submodule references 2023-07-21 04:04:31 +00:00
actions-user
c4aa0e2ad2 Auto updated submodule references 2023-07-20 04:04:26 +00:00
actions-user
28380a9517 Auto updated submodule references 2023-07-19 04:09:18 +00:00
actions-user
8d8bfc5585 Auto updated submodule references 2023-07-18 04:04:24 +00:00
actions-user
74aa6d7121 Auto updated submodule references 2023-07-17 04:04:45 +00:00
actions-user
908834465e Auto updated submodule references 2023-07-16 04:04:37 +00:00
actions-user
0bd99af9de Auto updated submodule references 2023-07-15 04:04:24 +00:00
actions-user
061086165f Auto updated submodule references 2023-07-14 04:04:33 +00:00
actions-user
cf978614db Auto updated submodule references 2023-07-13 04:04:35 +00:00
actions-user
69fb59812a Auto updated submodule references 2023-07-12 04:04:42 +00:00
actions-user
dfe010710b Auto updated submodule references 2023-07-11 04:04:39 +00:00
actions-user
09027a5c97 Auto updated submodule references 2023-07-08 04:04:48 +00:00
actions-user
578a104a92 Auto updated submodule references 2023-07-07 04:04:34 +00:00
actions-user
b066cff0b3 Auto updated submodule references 2023-07-06 04:04:45 +00:00
actions-user
d348680dc6 Auto updated submodule references 2023-07-05 17:45:45 +00:00
actions-user
a4a51da68a Auto updated submodule references 2023-07-05 04:04:56 +00:00
Colin Griffin
16ec6da83f use PAT for release creation 2023-07-04 11:29:35 -04:00
Colin Griffin
35125d3e41 fetch tags from origin 2023-07-04 11:05:27 -04:00
Colin Griffin
0c502c56ff checkout with refs/tags 2023-07-04 11:03:25 -04:00
Colin Griffin
d922d0f363 add tag list for debugging 2023-07-04 10:57:05 -04:00
Colin Griffin
d5fbf1869e remove quotes from tag 2023-07-04 10:52:57 -04:00
Colin Griffin
7567a4669b temp debugging 2023-07-04 10:50:25 -04:00
Colin Griffin
4a368b6279 pull submodules from remote to get available branches 2023-07-04 10:47:15 -04:00
Colin Griffin
f0feb3920a update reference to calcom folder 2023-07-04 10:41:10 -04:00
actions-user
6e264c2cbd Auto updated submodule references 2023-07-04 04:04:29 +00:00
actions-user
c2fef16e7f Auto updated submodule references 2023-07-03 04:04:40 +00:00
actions-user
98af1ee0f1 Auto updated submodule references 2023-07-02 04:04:32 +00:00
actions-user
a014e6987d Auto updated submodule references 2023-07-01 04:04:47 +00:00
actions-user
80fbee033f Auto updated submodule references 2023-06-30 04:04:22 +00:00
actions-user
aa03d3300a Auto updated submodule references 2023-06-29 04:04:20 +00:00
Colin Griffin
2fda3845b0 Merge pull request #265 from calcom/feat/actions-auto-release
Feat/actions auto release
2023-06-28 17:52:44 -04:00
Colin Griffin
2ab6ff4284 add action for creating local releases 2023-06-28 17:31:58 -04:00
Colin Griffin
4937e38996 tag version 3.0.9 2023-06-28 09:02:37 -04:00
actions-user
29994d5a47 Auto updated submodule references 2023-06-28 04:04:44 +00:00
actions-user
5d36da146c Auto updated submodule references 2023-06-27 04:04:42 +00:00
actions-user
c8abf7a184 Auto updated submodule references 2023-06-26 04:04:36 +00:00
actions-user
f5ca95e8a8 Auto updated submodule references 2023-06-24 04:04:28 +00:00
actions-user
6f6a258db1 Auto updated submodule references 2023-06-23 04:04:32 +00:00
actions-user
91b9623260 Auto updated submodule references 2023-06-22 04:04:23 +00:00
actions-user
594b253883 Auto updated submodule references 2023-06-21 04:04:31 +00:00
actions-user
465216f223 Auto updated submodule references 2023-06-20 04:04:20 +00:00
Colin Griffin
45ecfb1332 Merge pull request #263 from calcom/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2023-06-19 08:11:45 +01:00
dependabot[bot]
b05bf66a98 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 07:09:29 +00:00
actions-user
d6e52074fc Auto updated submodule references 2023-06-19 04:04:18 +00:00
actions-user
f8b0f22dd6 Auto updated submodule references 2023-06-18 04:04:06 +00:00
actions-user
cd18541a77 Auto updated submodule references 2023-06-17 04:04:08 +00:00
actions-user
36bc2a5e98 Auto updated submodule references 2023-06-16 04:04:31 +00:00
actions-user
84223fd3c2 Auto updated submodule references 2023-06-15 04:04:16 +00:00
Colin Griffin
a4d313ef8b Merge pull request #259 from jokay/feature/add-health-check
Add health check
2023-06-14 10:12:00 +01:00
D. Domig
4ea7fc4db6 Add health check 2023-06-14 09:51:22 +02:00
Colin Griffin
0aca750ab4 remove arm and restore ubuntu-latest to resume publishing without ARM 2023-06-14 08:37:40 +01:00
actions-user
4f011445a0 Auto updated submodule references 2023-06-14 04:04:28 +00:00
actions-user
030eecf235 Auto updated submodule references 2023-06-13 04:04:41 +00:00
actions-user
0e63623d06 Auto updated submodule references 2023-06-12 04:04:31 +00:00
actions-user
4526b07644 Auto updated submodule references 2023-06-11 04:04:23 +00:00
5 changed files with 151 additions and 14 deletions

59
.github/workflows/create-release.yaml vendored Normal file
View File

@@ -0,0 +1,59 @@
name: "Create Release"
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
RELEASE_TAG:
description: 'v{Major}.{Minor}.{Patch}'
jobs:
release:
name: "Release"
permissions:
contents: write
runs-on: "ubuntu-latest"
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
submodules: true
- name: Create branch and tag submodule
run: |
git config user.email "actions@github.com"
git config user.name "actions-user"
git submodule update --init --remote
git checkout -b 'release-${{ inputs.RELEASE_TAG }}'
(cd calcom && git fetch --tags origin && git checkout 'refs/tags/${{ inputs.RELEASE_TAG }}')
git add calcom
git commit -m "tag version Cal.com version ${{ inputs.RELEASE_TAG }}"
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: |
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: false,
repo: context.repo.repo,
tag_name: '${{ inputs.RELEASE_TAG }}',
});
core.exportVariable('RELEASE_ID', response.data.id);
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
} catch (error) {
core.setFailed(error.message);
}

View File

@@ -17,6 +17,11 @@ on:
- completed
# Allow running workflow manually from the Actions tab
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'
# on:
@@ -28,11 +33,16 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: self-hosted
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# 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
uses: actions/checkout@v3
@@ -91,15 +101,16 @@ jobs:
# config-inline: |
# [worker.oci]
# max-parallelism = 1
- name: Build and push image
- name: Build image
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
load: true # Load the image into the Docker daemon
push: false # Do not push the image at this stage
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
@@ -107,14 +118,76 @@ jobs:
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 }}
# - name: Build with docker compose
# run: |
# DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} calcom
- name: Cleanup
- name: Test runtime
run: |
docker compose down
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 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
# 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
id: docker_push
uses: docker/build-push-action@v4
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_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 }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Cleanup
run: |
docker compose down

View File

@@ -13,7 +13,7 @@ jobs:
shell: bash
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Git submodule update
run: |

View File

@@ -21,6 +21,7 @@ COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.c
COPY calcom/.yarn ./.yarn
COPY calcom/apps/web ./apps/web
COPY calcom/packages ./packages
COPY calcom/tests ./tests
RUN yarn config set httpTimeout 1200000 && \
npx turbo prune --scope=@calcom/web --docker && \
@@ -67,4 +68,8 @@ ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
ENV NODE_ENV production
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
CMD wget --spider http://localhost:3000 || exit 1
CMD ["/calcom/scripts/start.sh"]

2
calcom

Submodule calcom updated: 0d01d3246a...51fd4102ae