]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Publish docker images from main
[lemmy-ui.git] / .drone.yml
1 ---
2 kind: pipeline
3 name: amd64
4
5 platform:
6   os: linux
7   arch: amd64
8
9 steps:
10
11   - name: fetch git submodules
12     image: node:14-alpine
13     commands:
14       - apk add git
15       - git submodule init
16       - git submodule update --recursive --remote
17
18   - name: yarn
19     image: node:14-alpine
20     commands:
21       - yarn
22
23   - name: yarn lint
24     image: node:14-alpine
25     commands:
26       - yarn lint
27
28   - name: yarn build:dev
29     image: node:14-alpine
30     commands:
31       - yarn build:dev
32
33   - name: publish dev docker image
34     image: plugins/docker
35     settings:
36       dockerfile: Dockerfile
37       repo: dessalines/lemmy-ui
38       tags:
39         - dev-linux-arm64
40       username:
41         from_secret: docker_username
42       password:
43         from_secret: docker_password
44     when:
45       ref:
46         - refs/heads/main
47
48   - name: publish dev docker manifest
49     image: plugins/manifest
50     settings:
51       username:
52         from_secret: docker_username
53       password:
54         from_secret: docker_password
55       target: "dessalines/lemmy-ui:dev"
56       template: "dessalines/lemmy-ui:dev-OS-ARCH"
57       platforms:
58         - linux/amd64
59         - linux/arm64
60       ignore_missing: true
61     when:
62       ref:
63         - refs/heads/main
64
65   - name: publish release docker image
66     image: plugins/docker
67     settings:
68       dockerfile: Dockerfile
69       repo: dessalines/lemmy-ui
70       auto_tag: true
71       auto_tag_suffix: linux-amd64
72       username:
73         from_secret: docker_username
74       password:
75         from_secret: docker_password
76     when:
77       ref:
78         - refs/tags/*
79
80   - name: publish release docker manifest
81     image: plugins/manifest
82     settings: 
83       username:
84         from_secret: docker_username
85       password:
86         from_secret: docker_password
87       target: "dessalines/lemmy-ui:${DRONE_TAG}"
88       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
89       platforms:
90         - linux/amd64
91         - linux/arm64
92       ignore_missing: true
93     when:
94       ref:
95       - refs/tags/*
96
97 ---
98 kind: pipeline
99 name: arm64
100
101 platform:
102   os: linux
103   arch: arm64
104
105 steps:
106
107   - name: fetch git submodules
108     image: node:14-alpine
109     commands:
110       - apk add git
111       - git submodule init
112       - git submodule update --recursive --remote
113     when:
114       ref:
115         - refs/tags/*
116
117   - name: publish dev docker image
118     image: plugins/docker
119     settings:
120       dockerfile: Dockerfile
121       repo: dessalines/lemmy-ui
122       tags:
123         - dev-linux-arm64
124       username:
125         from_secret: docker_username
126       password:
127         from_secret: docker_password
128     when:
129       ref:
130         - refs/heads/main
131
132   - name: publish dev docker manifest
133     image: plugins/manifest
134     settings:
135       username:
136         from_secret: docker_username
137       password:
138         from_secret: docker_password
139       target: "dessalines/lemmy-ui:dev"
140       template: "dessalines/lemmy-ui:dev-OS-ARCH"
141       platforms:
142         - linux/amd64
143         - linux/arm64
144       ignore_missing: true
145     when:
146       ref:
147         - refs/heads/main
148
149   - name: publish release docker image
150     image: plugins/docker
151     settings:
152       dockerfile: Dockerfile
153       repo: dessalines/lemmy-ui
154       auto_tag: true
155       auto_tag_suffix: linux-arm64
156       username:
157         from_secret: docker_username
158       password:
159         from_secret: docker_password
160     when:
161       ref:
162         - refs/tags/*
163
164   - name: publish release docker manifest
165     image: plugins/manifest
166     settings: 
167       username:
168         from_secret: docker_username
169       password:
170         from_secret: docker_password
171       target: "dessalines/lemmy-ui:${DRONE_TAG}"
172       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
173       platforms:
174         - linux/amd64
175         - linux/arm64
176       ignore_missing: true
177     when:
178       ref:
179       - refs/tags/*