calcom-builder/.drone.yml
mcm 7673f51b32
Some checks failed
continuous-integration/drone Build is failing
Initial commit
2022-10-12 02:24:52 -04:00

57 lines
1.3 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.tgz
- name: download docker-compose.yml
image: plugins/download
settings:
source: https://raw.githubusercontent.com/calcom/docker/main/docker-compose.yaml
- name: extract source
image: alpine
commands:
- tar --strip-components 1 -xzf source.tgz
- 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:9-alpine
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: database
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
trigger:
branch:
- main
event:
- push
- custom