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

51 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:23.0.6-cli-alpine3.17@sha256:53221a6781b9360dc2965112998cfd209034f2b8cdf98bdc314dfd740bb3c845
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
- docker image prune --all --filter=until=24h --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:37.55.0@sha256:ebcc6f74d14a07c77fcad67a1351d0518b9f440daca327901b58734d56977d16
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_TOKEN:
from_secret: RENOVATE_TOKEN