quickserv/.drone.yml

43 lines
941 B
YAML
Raw Permalink Normal View History

2020-03-27 23:50:48 +00:00
kind: pipeline
2020-05-28 18:58:41 +00:00
name: nix build and push
2020-03-27 23:50:48 +00:00
steps:
- name: docker image
2020-05-28 18:58:41 +00:00
image: "monacoremo/nix:2020-04-05-05f09348-circleci"
2020-03-27 23:50:48 +00:00
commands:
- nix-build docker.nix
2020-05-28 19:02:01 +00:00
- cp $(readlink result) /result/docker.tgz
2020-05-28 18:58:41 +00:00
volumes:
- name: result
path: /result
- name: push image
image: docker:dind
volumes:
- name: result
path: /result
- name: dockersock
path: /var/run
commands:
- docker load -i /result/docker.tgz
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- docker push xena/quickserv
environment:
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: result
temp: {}
- name: dockersock
temp: {}