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
|
|
|
|
path: /site_data/
|
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
|
2022-10-19 23:53:28 +00:00
|
|
|
- cp -r result /site_data/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
|
|
|
|
path: /site_data/
|
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:53:28 +00:00
|
|
|
path: /site_data/site
|