]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Allow adding and removing remote mods
[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: make release build and push to docker hub
34     image: plugins/docker
35     settings:
36       dockerfile: Dockerfile
37       repo: dessalines/lemmy-ui
38       auto_tag: true
39       auto_tag_suffix: linux-amd64
40       username:
41         from_secret: docker_username
42       password:
43         from_secret: docker_password
44     when:
45       ref:
46         - refs/tags/*
47
48   - name: push to 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:${DRONE_TAG}"
56       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
57       platforms:
58         - linux/amd64
59         - linux/arm64
60       ignore_missing: true
61     when:
62       ref:
63       - refs/tags/*
64
65 ---
66 kind: pipeline
67 name: arm64
68
69 platform:
70   os: linux
71   arch: arm64
72
73 steps:
74
75   - name: fetch git submodules
76     image: node:14-alpine
77     commands:
78       - apk add git
79       - git submodule init
80       - git submodule update --recursive --remote
81     when:
82       ref:
83         - refs/tags/*
84
85   - name: make release build and push to docker hub
86     image: plugins/docker
87     settings:
88       dockerfile: Dockerfile
89       repo: dessalines/lemmy-ui
90       auto_tag: true
91       auto_tag_suffix: linux-arm64
92       username:
93         from_secret: docker_username
94       password:
95         from_secret: docker_password
96     when:
97       ref:
98         - refs/tags/*
99
100   - name: push to docker manifest
101     image: plugins/manifest
102     settings: 
103       username:
104         from_secret: docker_username
105       password:
106         from_secret: docker_password
107       target: "dessalines/lemmy-ui:${DRONE_TAG}"
108       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
109       platforms:
110         - linux/amd64
111         - linux/arm64
112       ignore_missing: true
113     when:
114       ref:
115       - refs/tags/*