Update drone to use nix
This commit is contained in:
parent
801c96e108
commit
736e6aaafa
33
.drone.yml
33
.drone.yml
|
@ -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
|
||||||
|
|
Reference in a new issue