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

26 lines
489 B
YAML
Raw Normal View History

2022-12-27 00:13:45 +09:00
# yaml-language-server: $schema=https://json.schemastore.org/drone.json
name: default
kind: pipeline
type: docker
trigger:
event:
- push
branch:
- main
steps:
2022-12-27 00:43:37 +09:00
- name: deploy
2022-12-27 00:13:45 +09:00
image: docker
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 00:43:37 +09:00
- docker compose up --detach
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