Compare commits

..

83 Commits

Author SHA1 Message Date
actions-user
929bde2c08 tag version Cal.com version v4.1.7 2024-05-31 15:03:26 +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
5 changed files with 37 additions and 34 deletions

View File

@@ -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

View File

@@ -37,6 +37,12 @@ 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
@@ -44,14 +50,14 @@ jobs:
# ref: ${{ github.event.inputs.version }}
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Git submodule update
run: |
git submodule update --init
- name: Log in to the Docker Hub registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
# Username used to log against the Docker registry
username: ${{ secrets.DOCKER_HUB_USERNAME }}
@@ -61,7 +67,7 @@ jobs:
logout: true # optional, default is true
- name: Log in to the Github Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -69,7 +75,7 @@ jobs:
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
docker.io/calendso/calendso
@@ -95,7 +101,7 @@ jobs:
docker compose up -d database
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=container:database
@@ -107,7 +113,7 @@ jobs:
- name: Build image
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
@@ -118,6 +124,7 @@ jobs:
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 }}
@@ -165,18 +172,9 @@ jobs:
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
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
@@ -186,6 +184,7 @@ jobs:
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 }}

View File

@@ -8,8 +8,10 @@ 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 \
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
DATABASE_URL=$DATABASE_URL \
@@ -21,16 +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/.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 --docker
RUN yarn install
RUN yarn db-deploy
RUN yarn --cwd packages/prisma seed-app-store
RUN yarn --cwd apps/web workspace @calcom/web run build
# RUN yarn plugin import workspace-tools && \
# yarn workspaces focus --all --production

2
calcom

Submodule calcom updated: 75d5576e17...15098bdd1e

View File

@@ -27,6 +27,7 @@ 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}
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}