]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Add issue template
[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       username:
40         from_secret: docker_username
41       password:
42         from_secret: docker_password
43     when:
44       ref:
45         - refs/tags/*
46
47 ---
48 kind: pipeline
49 name: arm64
50
51 platform:
52   os: linux
53   arch: arm64
54
55 steps:
56
57   - name: fetch git submodules
58     image: node:14-alpine
59     commands:
60       - apk add git
61       - git submodule init
62       - git submodule update --recursive --remote
63
64   - name: make release build and push to docker hub
65     image: plugins/docker
66     settings:
67       dockerfile: Dockerfile
68       repo: dessalines/lemmy-ui
69       auto_tag: true
70       auto_tag_suffix: arm64
71       username:
72         from_secret: docker_username
73       password:
74         from_secret: docker_password
75     when:
76       ref:
77         - refs/tags/*
78