]> Untitled Git - lemmy-ui.git/blob - .drone.yml
61525604c0264424cc4f5a8a381385266951a62f
[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
82   - name: make release build and push to docker hub
83     image: plugins/docker
84     settings:
85       dockerfile: Dockerfile
86       repo: dessalines/lemmy-ui
87       auto_tag: true
88       auto_tag_suffix: linux-arm64
89       username:
90         from_secret: docker_username
91       password:
92         from_secret: docker_password
93     when:
94       ref:
95         - refs/tags/*
96
97   - name: push to docker manifest
98     image: plugins/manifest
99     settings: 
100       username:
101         from_secret: docker_username
102       password:
103         from_secret: docker_password
104       target: "dessalines/lemmy-ui:${DRONE_TAG}"
105       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
106       platforms:
107         - linux/amd64
108         - linux/arm64
109       ignore_missing: true
110     when:
111       ref:
112       - refs/tags/*