calcom-builder/.drone.yml
mcm c5eea4cb2f
Some checks failed
continuous-integration/drone/push Build is failing
test
2022-10-30 04:13:19 -04:00

62 lines
1.6 KiB
YAML

kind: pipeline
name: default
type: docker
steps:
- name: download source
image: plugins/download
settings:
source: https://smcm.xyz/gh/calcom/cal.com/source.tar.gz
# - name: download docker repo
# image: plugins/download
# settings:
# source: https://github.com/calcom/docker/archive/refs/heads/main.tar.gz
# destination: docker.tar.gz
- name: extract source
image: alpine
commands:
- mkdir calcom
- tar --strip-components 1 -C calcom -xzf source.tar.gz
# - tar --strip-components 1 -xzf docker.tar.gz
- name: build
image: node:16
environment:
NEXT_PUBLIC_WEBAPP_URL: https://cal.smcm.xyz
NEXT_PUBLIC_APP_URL: https://cal.smcm.xyz
NEXT_PUBLIC_LICENSE_CONSENT: agree
CALCOM_TELEMETRY_DISABLED: 1
NEXTAUTH_SECRET:
from_secret: nextauth_secret
CALENDSO_ENCRYPTION_KEY:
from_secret: calendso_encryption_key
DATABASE_URL: postgresql://unicorn_user:magical_password@postgres/calendso
NODE_OPTIONS: "--max-old-space-size=4096"
NODE_ENV: production
commands:
- cd calcom
- yarn config set network-timeout 1000000000 -g
- yarn install
- yarn build
- name: publish
image: plugins/docker
settings:
repo: cr.smcm.xyz/calcom
tags:
- latest
- ${DRONE_COMMIT_SHA}
services:
- name: postgres
image: postgres
environment:
POSTGRES_USER: unicorn_user
POSTGRES_PASSWORD: magical_password
POSTGRES_DB: calendso
trigger:
branch:
- main
event:
- push
- custom