]> Untitled Git - lemmy-ui.git/blob - .drone.yml
WIP:Aadd drone ci config
[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: create docker tags
61     image: node:14-alpine
62     commands:
63       - echo "$(git describe),latest" > .tags
64     when:
65       ref:
66         - refs/tags/*
67
68   - name: try to make a build
69     image: plugins/docker
70     settings:
71       dockerfile: Dockerfile
72       repo: dessalines/lemmy-ui
73     #when:
74     #  ref:
75     #    - refs/tags/*