Update drone to use nix

master
Simon Bruder 2020-10-11 18:01:25 +02:00
parent 801c96e108
commit 736e6aaafa
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 11 additions and 22 deletions

View File

@ -1,34 +1,23 @@
kind: pipeline kind: pipeline
name: default name: default
type: exec
steps: steps:
- name: submodules - name: submodules
image: docker:git
commands: commands:
- git submodule init - git submodule init
- git submodule update --recursive --remote - git submodule update --recursive --remote
- name: libreoffice - name: build
image: jess/libreoffice
commands: commands:
- apk add --no-cache make - nix-build
- ./compile.sh libreoffice
- name: revealjs - name: push
image: python:3-alpine environment:
commands: NETLIFY_AUTH_TOKEN:
- apk add --no-cache make
- pip install pipenv
- pipenv install --system
- ./compile.sh revealjs
- name: publish
image: r.sbruder.de/drone-netlify
settings:
auth_token:
from_secret: netlify_auth_token from_secret: netlify_auth_token
dir: . commands:
prod: 1 - nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz -p netlify-cli --run "netlify deploy --prod -d $(readlink -f result)"
when:
branch: node:
- master nix: 1