]> Untitled Git - lemmy-ui.git/blob - .drone.yml
Remove dev image building from drone. (#477)
[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       - git fetch --tags
18
19   - name: yarn
20     image: node:14-alpine
21     commands:
22       - yarn
23
24   - name: yarn lint
25     image: node:14-alpine
26     commands:
27       - yarn lint
28
29   - name: yarn build:dev
30     image: node:14-alpine
31     commands:
32       - yarn build:dev
33
34   - name: publish release docker image
35     image: plugins/docker
36     settings:
37       dockerfile: Dockerfile
38       repo: dessalines/lemmy-ui
39       auto_tag: true
40       auto_tag_suffix: linux-amd64
41       username:
42         from_secret: docker_username
43       password:
44         from_secret: docker_password
45     when:
46       ref:
47         - refs/tags/*
48
49   - name: publish release docker manifest
50     image: plugins/manifest
51     settings: 
52       username:
53         from_secret: docker_username
54       password:
55         from_secret: docker_password
56       target: "dessalines/lemmy-ui:${DRONE_TAG}"
57       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
58       platforms:
59         - linux/amd64
60         - linux/arm64
61       ignore_missing: true
62     when:
63       ref:
64       - refs/tags/*
65
66 ---
67 kind: pipeline
68 name: arm64
69
70 platform:
71   os: linux
72   arch: arm64
73
74 steps:
75
76   - name: fetch git submodules
77     image: node:14-alpine
78     commands:
79       - apk add git
80       - git submodule init
81       - git submodule update --recursive --remote
82       - git fetch --tags
83     when:
84       ref:
85         - refs/heads/main
86         - refs/tags/*
87
88   - name: publish release docker image
89     image: plugins/docker
90     settings:
91       dockerfile: Dockerfile
92       repo: dessalines/lemmy-ui
93       auto_tag: true
94       auto_tag_suffix: linux-arm64
95       username:
96         from_secret: docker_username
97       password:
98         from_secret: docker_password
99     when:
100       ref:
101         - refs/tags/*
102
103   - name: publish release docker manifest
104     image: plugins/manifest
105     settings: 
106       username:
107         from_secret: docker_username
108       password:
109         from_secret: docker_password
110       target: "dessalines/lemmy-ui:${DRONE_TAG}"
111       template: "dessalines/lemmy-ui:${DRONE_TAG}-OS-ARCH"
112       platforms:
113         - linux/amd64
114         - linux/arm64
115       ignore_missing: true
116     when:
117       ref:
118       - refs/tags/*