-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
40 lines (35 loc) · 856 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
kind: pipeline
ype: docker
name: rebacs
trigger:
event:
- push
steps:
- name: create_image
image: nixos/nix
commands:
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes --cores 0 --max-jobs auto .#dockerImage
- cp result rebacs.tar.gz
- name: upload_image
image: docker:dind
environment:
REGISTRY_PASSWD:
from_secret: REGISTRY_PASSWD
volumes:
- name: dockersock
path: /var/run
commands:
- docker login --username droneci --password $REGISTRY_PASSWD git2.zettoit.eu
- docker load < rebacs.tar.gz
- docker tag rebacs:latest git2.zettoit.eu/zettoit/rebacs:latest
- docker push git2.zettoit.eu/zettoit/rebacs:latest
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}