mat.services/.drone.yml

33 lines
608 B
YAML
Raw Normal View History

2022-10-19 23:12:52 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: nix build
image: nixos/nix
volumes:
2022-10-19 23:53:28 +00:00
- name: site
2022-10-19 23:57:49 +00:00
path: /site
2022-10-19 23:12:52 +00:00
commands:
2022-10-19 23:18:08 +00:00
- >
2022-10-19 23:22:34 +00:00
nix \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
2022-10-19 23:18:08 +00:00
build
- cp -r result/* /site/
2022-10-19 23:12:52 +00:00
- name: netlify deploy
2022-10-19 23:46:08 +00:00
image: lucap/drone-netlify
2022-10-19 23:12:52 +00:00
volumes:
2022-10-19 23:53:28 +00:00
- name: site
2022-10-19 23:57:49 +00:00
path: /site
2022-10-19 23:12:52 +00:00
settings:
token:
from_secret: netlify_token
site_id:
from_secret: netlify_site_id
2022-10-19 23:57:49 +00:00
path: /site
volumes:
- name: site
temp: {}