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
Nebel 6dfa5c1694
All checks were successful
continuous-integration/drone/push Build is passing
cleanup old images
2023-01-10 14:28:43 +09: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:20.10.22-cli-alpine3.17@sha256:75026b00c823579421c1850c00def301a6126b3f3f684594e51114c997f76467
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=1d
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.97.0@sha256:3ddde18c72a3d3d73e03d6e547af2263f964c5e401a168dce9a6ac195d61e2a8
commands:
- renovate
environment:
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: https://git.fogtype.com/api/v1/
RENOVATE_AUTODISCOVER: "true"
RENOVATE_AUTODISCOVER_FILTER: nebel/*
RENOVATE_TOKEN:
from_secret: RENOVATE_TOKEN