This commit is contained in:
parent
db043f06c8
commit
3d5e9bdf58
60
.drone.yml
60
.drone.yml
@ -19,15 +19,39 @@ steps:
|
|||||||
- tar --strip-components 1 -C calcom -xzf source.tar.gz
|
- tar --strip-components 1 -C calcom -xzf source.tar.gz
|
||||||
- tar --strip-components 1 -xzf docker.tar.gz
|
- tar --strip-components 1 -xzf docker.tar.gz
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:dind
|
image: plugins/docker
|
||||||
volumes:
|
environment:
|
||||||
- name: dockersock
|
DOCKER_BUILDKIT: 0
|
||||||
path: /var/run
|
NEXT_PUBLIC_WEBAPP_URL: https://cal.smcm.xyz
|
||||||
commands:
|
NEXT_PUBLIC_LICENSE_CONSENT: agree
|
||||||
- sleep 8
|
CALCOM_TELEMETRY_DISABLED: 1
|
||||||
- DOCKER_BUILDKIT=0 docker compose build calcom
|
NEXTAUTH_SECRET:
|
||||||
- docker tag calcom cr.smcm.xyz/calcom:latest
|
from_secret: nextauth_secret
|
||||||
- docker push --all-tags cr.smcm.xyz/calcom
|
CALENDSO_ENCRYPTION_KEY:
|
||||||
|
from_secret: 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
|
||||||
|
# - 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
|
# - name: deploy
|
||||||
# image: plugins/webhook
|
# image: plugins/webhook
|
||||||
# settings:
|
# settings:
|
||||||
@ -35,21 +59,11 @@ steps:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres:9-alpine
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: username
|
POSTGRES_USER: unicorn_user
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: magical_password
|
||||||
POSTGRES_DB: database
|
POSTGRES_DB: calendso
|
||||||
- name: docker
|
|
||||||
image: docker:dind
|
|
||||||
privileged: true
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
path: /var/run
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dockersock
|
|
||||||
temp: {}
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user