This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues/pull-requests.
presis/.drone.yml

39 lines
912 B
YAML
Raw Permalink Normal View History

2019-03-23 21:33:31 +01:00
kind: pipeline
name: default
2020-10-11 18:01:25 +02:00
type: exec
2019-03-23 21:33:31 +01:00
steps:
- name: lfs
2019-03-23 21:33:31 +01:00
commands:
- git lfs install
- git lfs pull
2019-03-23 21:33:31 +01:00
2020-10-11 18:01:25 +02:00
- name: build
2018-04-12 18:38:04 +02:00
commands:
- nix build -L
2018-04-12 18:38:04 +02:00
2021-05-22 18:06:10 +02:00
- name: push-prod
when:
branch:
- master
2020-10-11 18:01:25 +02:00
environment:
NETLIFY_AUTH_TOKEN:
from_secret: netlify_auth_token
2018-06-01 20:45:54 +02:00
commands:
- cp --no-preserve=mode -rL result netlify-does-not-follow-symlinks
- nix develop -c netlify deploy --prod -d netlify-does-not-follow-symlinks
- rm -rf netlify-does-not-follow-symlinks
2021-05-22 18:06:10 +02:00
- name: push-staging
when:
branch:
exclude:
- master
environment:
NETLIFY_AUTH_TOKEN:
from_secret: netlify_auth_token
commands:
- cp --no-preserve=mode -rL result netlify-does-not-follow-symlinks
- nix develop -c netlify deploy -d netlify-does-not-follow-symlinks
- rm -rf netlify-does-not-follow-symlinks