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