]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Add option to set site default theme (fixes #559)
[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 release docker image
35     image: plugins/docker
36     settings:
37       dockerfile: Dockerfile
38       repo: dessalines/lemmy-ui
39       auto_tag: true
40       auto_tag_suffix: linux-amd64
41       username:
42         from_secret: docker_username
43       password:
44         from_secret: docker_password
45     when:
46       ref:
47         - refs/tags/*
48
49   - name: publish release 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:${DRONE_TAG}"
57       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
58       platforms:
59         - linux/amd64
60         - linux/arm64
61       ignore_missing: true
62     when:
63       ref:
64       - refs/tags/*
65
66   - name: publish latest release docker manifest
67     image: plugins/manifest
68     settings: 
69       username:
70         from_secret: docker_username
71       password:
72         from_secret: docker_password
73       target: "dessalines/lemmy-ui:latest"
74       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
75       platforms:
76         - linux/amd64
77         - linux/arm64
78       ignore_missing: true
79     when:
80       ref:
81       - refs/tags/*
82
83 ---
84 kind: pipeline
85 name: arm64
86
87 platform:
88   os: linux
89   arch: arm64
90
91 steps:
92
93   - name: fetch git submodules
94     image: node:14-alpine
95     commands:
96       - apk add git
97       - git submodule init
98       - git submodule update --recursive --remote
99       - git fetch --tags
100     when:
101       ref:
102         - refs/heads/main
103         - refs/tags/*
104
105   - name: publish release docker image
106     image: plugins/docker
107     settings:
108       dockerfile: Dockerfile
109       repo: dessalines/lemmy-ui
110       auto_tag: true
111       auto_tag_suffix: linux-arm64
112       username:
113         from_secret: docker_username
114       password:
115         from_secret: docker_password
116     when:
117       ref:
118         - refs/tags/*
119
120   - name: publish release docker manifest
121     image: plugins/manifest
122     settings: 
123       username:
124         from_secret: docker_username
125       password:
126         from_secret: docker_password
127       target: "dessalines/lemmy-ui:${DRONE_TAG}"
128       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
129       platforms:
130         - linux/amd64
131         - linux/arm64
132       ignore_missing: true
133     when:
134       ref:
135       - refs/tags/*
136
137   - name: publish latest release docker manifest
138     image: plugins/manifest
139     settings: 
140       username:
141         from_secret: docker_username
142       password:
143         from_secret: docker_password
144       target: "dessalines/lemmy-ui:latest"
145       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
146       platforms:
147         - linux/amd64
148         - linux/arm64
149       ignore_missing: true
150     when:
151       ref:
152       - refs/tags/*