This repository has been archived on 2024-01-05. You can view files and clone it, but cannot push or open issues or pull requests.
gamma.fogtype.com/.drone.yml
drone 18f4bbd774
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update renovate/renovate:35.48.2 docker digest to cfcb87e
2023-04-17 02:02:58 +00:00

51 lines
1.2 KiB
YAML

# yaml-language-server: $schema=https://json.schemastore.org/drone.json
name: deploy
kind: pipeline
type: docker
node:
instance: system
trigger:
event:
- push
branch:
- main
steps:
- name: deploy
image: docker:23.0.3-cli-alpine3.17@sha256:64e2c856be595f7357261df9e9bc72f8a27dabbf065bd55865d6f74409b5e284
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- echo -n "$${ENV}" > .env
- docker compose --project-name=gammafogtypecom up --detach
- docker image prune --all --filter=until=24h --force
environment:
ENV:
from_secret: ENV
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
---
name: renovate
kind: pipeline
type: docker
clone:
disable: true
trigger:
event:
- cron
cron:
- renovate
steps:
- name: renovate
image: renovate/renovate:35.48.2@sha256:cfcb87e9e5878f518342ac1ffca74978d5e5d4250aefe5972012c9366bc0e149
commands:
- renovate
environment:
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: https://git.fogtype.com/api/v1/
RENOVATE_AUTODISCOVER: "true"
RENOVATE_AUTODISCOVER_FILTER: "nebel/!(archive.fogtype.com)"
RENOVATE_TOKEN:
from_secret: RENOVATE_TOKEN