This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
presis/.drone.yml
Simon Bruder 3984260066
All checks were successful
continuous-integration/drone/push Build is passing
drone: Only push master to production
2021-05-22 18:06:10 +02:00

39 lines
912 B
YAML

kind: pipeline
name: default
type: exec
steps:
- name: lfs
commands:
- git lfs install
- git lfs pull
- name: build
commands:
- nix build -L
- name: push-prod
when:
branch:
- 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 --prod -d netlify-does-not-follow-symlinks
- rm -rf netlify-does-not-follow-symlinks
- 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