51 lines
1.2 KiB
YAML
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.1-cli-alpine3.17@sha256:ef0e621d70fba35a0421e451c7fcbda62277dd4882c7c6f51b4c456e05eb2cc0
|
|
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:34.131.0@sha256:a77f268b6bb97b3c3cb2c6187bef82c8ba4dcf25533bdd97a26046ee2034b78b
|
|
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
|