78 lines
2.1 KiB
YAML
78 lines
2.1 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: plugins/docker
|
|
environment:
|
|
DOCKER_BUILDKIT: 0
|
|
DOCKER_HOST: tcp://host.docker.internal:2375
|
|
NEXT_PUBLIC_WEBAPP_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
|
|
settings:
|
|
repo: cr.smcm.xyz/calcom
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA}
|
|
build_args_from_env:
|
|
- NEXT_PUBLIC_WEBAPP_URL
|
|
- NEXT_PUBLIC_LICENSE_CONSENT
|
|
- CALCOM_TELEMETRY_DISABLED
|
|
- NEXTAUTH_SECRET
|
|
- CALENDSO_ENCRYPTION_KEY
|
|
- DATABASE_URL
|
|
daemon_off: true
|
|
add_host:
|
|
host.docker.internal: host-gateway
|
|
# - name: build
|
|
# image: docker:dind
|
|
# volumes:
|
|
# - name: dockersock
|
|
# path: /var/run
|
|
# commands:
|
|
# - sleep 8
|
|
# - DOCKER_BUILDKIT=0 docker compose build calcom
|
|
# - docker tag calcom cr.smcm.xyz/calcom:latest
|
|
# - docker push --all-tags cr.smcm.xyz/calcom
|
|
# - name: deploy
|
|
# image: plugins/webhook
|
|
# settings:
|
|
# urls: https://avdelning.mcmaster.io/api/stacks/webhooks/1c658cc6-8d9c-4249-bcf8-659f98f3b9bf
|
|
|
|
services:
|
|
- name: postgres
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: unicorn_user
|
|
POSTGRES_PASSWORD: magical_password
|
|
POSTGRES_DB: calendso
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
- custom
|