]> Untitled Git - lemmy-ui.git/blob - .woodpecker.yml
remove badge-muted
[lemmy-ui.git] / .woodpecker.yml
1 pipeline:
2   fetch_git_submodules:
3     image: node:14-alpine
4     commands:
5       - apk add git
6       - git submodule init
7       - git submodule update --recursive --remote
8       # - git fetch --tags
9
10   yarn:
11     image: node:14-alpine
12     commands:
13       - yarn
14
15   yarn_lint:
16     image: node:14-alpine
17     commands:
18       - yarn lint
19
20   yarn_build_dev:
21     image: node:14-alpine
22     commands:
23       - yarn build:dev
24
25   nightly_build:
26     image: plugins/docker
27     settings:
28       dockerfile: Dockerfile
29       repo: dessalines/lemmy-ui
30       username:
31         from_secret: docker_username
32       password:
33         from_secret: docker_password
34       tags:
35         - dev
36     when:
37       event:
38         - cron
39
40   publish_release_docker_image_amd:
41     image: plugins/docker
42     settings:
43       dockerfile: Dockerfile
44       repo: dessalines/lemmy-ui
45       auto_tag: true
46       auto_tag_suffix: linux-amd64
47       username:
48         from_secret: docker_username
49       password:
50         from_secret: docker_password
51     when:
52       event: tag
53       platform: linux/arm64
54
55   publish_release_docker_image_arm:
56     image: plugins/docker
57     settings:
58       dockerfile: Dockerfile
59       repo: dessalines/lemmy-ui
60       auto_tag: true
61       auto_tag_suffix: linux-arm64
62       username:
63         from_secret: docker_username
64       password:
65         from_secret: docker_password
66     when:
67       event: tag
68       platform: linux/amd64
69
70   publish_release_docker_manifest:
71     image: plugins/manifest
72     settings:
73       username:
74         from_secret: docker_username
75       password:
76         from_secret: docker_password
77       target: "dessalines/lemmy-ui:${CI_COMMIT_TAG}"
78       template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
79       platforms:
80         - linux/amd64
81         - linux/arm64
82       ignore_missing: true
83     when:
84       event: tag
85
86   publish_latest_release_docker_manifest:
87     image: plugins/manifest
88     settings:
89       username:
90         from_secret: docker_username
91       password:
92         from_secret: docker_password
93       target: "dessalines/lemmy-ui:latest"
94       template: "dessalines/lemmy-ui:${CI_COMMIT_TAG}-OS-ARCH"
95       platforms:
96         - linux/amd64
97         - linux/arm64
98       ignore_missing: true
99     when:
100       event: tag