]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Some clean up.
[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: create docker tags
34     image: node:14-alpine
35     commands:
36       - echo "$(git describe),latest" > .tags
37     when:
38       ref:
39         - refs/tags/*
40
41   - name: try to make a build
42     image: plugins/docker
43     settings:
44       dockerfile: Dockerfile
45       repo: dessalines/lemmy-ui
46     when:
47       ref:
48         - refs/tags/*
49
50 ---
51 kind: pipeline
52 name: arm64
53
54 platform:
55   os: linux
56   arch: arm64
57
58 steps:
59
60   - name: fetch git submodules
61     image: node:14-alpine
62     commands:
63       - apk add git
64       - git submodule init
65       - git submodule update --recursive --remote
66
67   - name: create docker tags
68     image: node:14-alpine
69     commands:
70       - echo "$(git describe),latest" > .tags
71     when:
72       ref:
73         - refs/tags/*
74
75   - name: try to make a build
76     image: plugins/docker
77     settings:
78       dockerfile: Dockerfile
79       repo: dessalines/lemmy-ui
80     when:
81       ref:
82         - refs/tags/*
83