From 398426006676fd8149e28a95615ccf81dee52f1c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 22 May 2021 18:06:10 +0200 Subject: [PATCH] drone: Only push master to production --- .drone.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 956a3db..e675373 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,10 @@ steps: commands: - nix build -L - - name: push + - name: push-prod + when: + branch: + - master environment: NETLIFY_AUTH_TOKEN: from_secret: netlify_auth_token @@ -20,3 +23,16 @@ steps: - 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