-
Notifications
You must be signed in to change notification settings - Fork 71
/
.drone.yml
74 lines (65 loc) · 1.44 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
kind: pipeline
name: release
steps:
- name: build & push release image
image: thegeeklab/drone-docker-buildx:24.1@sha256:ec22bdd258013478e6c5cb20430a7ea815d9f3e12ac71ee90a66c1b1d74071e5
settings:
auto_tag: true
repo: mazzolino/restic
platforms:
- linux/amd64
- linux/arm64
- linux/armhf
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
exclude:
- pull_request
branch:
- master
---
kind: pipeline
name: pr
steps:
- name: test
image: mazzolino/docker-shellspec
volumes:
- name: dockersock
path: /var/run
- name: build & push PR image
image: thegeeklab/drone-docker-buildx:24.1@sha256:ec22bdd258013478e6c5cb20430a7ea815d9f3e12ac71ee90a66c1b1d74071e5
settings:
repo: mazzolino/restic
tags:
- pr-${DRONE_PULL_REQUEST}
platforms:
- linux/amd64
- linux/arm64
- linux/armhf
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- pull_request
services:
- name: docker
image: docker:20.10-dind
commands:
- dockerd
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
---
kind: signature
hmac: 053665109aca58a5bf25dcbc46f676367568d8ac9b3236b9dbb787332c6ab2f7
...