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