diff --git a/.drone.yml b/.drone.yml index f35bd51..bcdda63 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,15 +19,39 @@ steps: - tar --strip-components 1 -C calcom -xzf source.tar.gz - tar --strip-components 1 -xzf docker.tar.gz - 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 + image: plugins/docker + environment: + DOCKER_BUILDKIT: 0 + 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: 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 # image: plugins/webhook # settings: @@ -35,21 +59,11 @@ steps: services: - name: postgres - image: postgres:9-alpine + image: postgres 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: {} + POSTGRES_USER: unicorn_user + POSTGRES_PASSWORD: magical_password + POSTGRES_DB: calendso trigger: branch: