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

52 lines
1.2 KiB
YAML
Raw Normal View History

2022-12-27 00:13:45 +09:00
# yaml-language-server: $schema=https://json.schemastore.org/drone.json
2022-12-27 01:46:24 +09:00
name: deploy
2022-12-27 00:13:45 +09:00
kind: pipeline
type: docker
2022-12-27 16:25:58 +09:00
node:
instance: system
2022-12-27 00:13:45 +09:00
trigger:
event:
- push
branch:
- main
steps:
2022-12-27 00:43:37 +09:00
- name: deploy
image: docker:20.10.22-cli-alpine3.17@sha256:75026b00c823579421c1850c00def301a6126b3f3f684594e51114c997f76467
2022-12-27 00:13:45 +09:00
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
2022-12-27 01:00:22 +09:00
- echo -n "$${ENV}" > .env
2022-12-27 01:07:30 +09:00
- docker compose --project-name=gammafogtypecom up --detach
2023-01-10 18:57:26 +09:00
- docker image prune --all --filter=until=1d --force
2022-12-27 01:00:22 +09:00
environment:
ENV:
from_secret: ENV
2022-12-27 00:13:45 +09:00
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
2022-12-27 01:46:24 +09:00
---
name: renovate
kind: pipeline
type: docker
clone:
disable: true
trigger:
event:
- cron
cron:
- renovate
steps:
2022-12-27 10:12:43 +09:00
- name: renovate
image: renovate/renovate:34.97.1@sha256:9dfec2b6f3d41a5306e84a26660e29af84a853ef86d6042db074cfc8e23d7031
2022-12-27 01:46:24 +09:00
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