]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Add check for unused languages in update_translations.sh
[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-amd64
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/heads/main
116         - refs/tags/*
117
118   - name: publish dev docker image
119     image: plugins/docker
120     settings:
121       dockerfile: Dockerfile
122       repo: dessalines/lemmy-ui
123       tags:
124         - dev-linux-arm64
125       username:
126         from_secret: docker_username
127       password:
128         from_secret: docker_password
129     when:
130       ref:
131         - refs/heads/main
132
133   - name: publish dev docker manifest
134     image: plugins/manifest
135     settings:
136       username:
137         from_secret: docker_username
138       password:
139         from_secret: docker_password
140       target: "dessalines/lemmy-ui:dev"
141       template: "dessalines/lemmy-ui:dev-OS-ARCH"
142       platforms:
143         - linux/amd64
144         - linux/arm64
145       ignore_missing: true
146     when:
147       ref:
148         - refs/heads/main
149
150   - name: publish release docker image
151     image: plugins/docker
152     settings:
153       dockerfile: Dockerfile
154       repo: dessalines/lemmy-ui
155       auto_tag: true
156       auto_tag_suffix: linux-arm64
157       username:
158         from_secret: docker_username
159       password:
160         from_secret: docker_password
161     when:
162       ref:
163         - refs/tags/*
164
165   - name: publish release docker manifest
166     image: plugins/manifest
167     settings: 
168       username:
169         from_secret: docker_username
170       password:
171         from_secret: docker_password
172       target: "dessalines/lemmy-ui:${DRONE_TAG}"
173       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
174       platforms:
175         - linux/amd64
176         - linux/arm64
177       ignore_missing: true
178     when:
179       ref:
180       - refs/tags/*