lewa/.drone.yml

32 lines
707 B
YAML

kind: pipeline
name: default
workspace:
base: /lewa
steps:
- name: build book docker image
image: "monacoremo/nix:2020-04-05-05f09348-circleci"
commands:
- echo '{ allowUnfree = true; }' > ~/.config/nixpkgs/config.nix
- cd book && nix-build
- cp $(readlink result) /lewa/result/docker.tgz
volumes:
- name: book
path: /lewa/result
- name: push image
image: docker:dind
volumes:
- name: book
path: /lewa/result
- name: dockersock
path: /var/run/docker.sock
commands:
- docker import -f /lewa/result/docker.tgz
volumes:
- name: book
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock