-
Notifications
You must be signed in to change notification settings - Fork 105
/
.woodpecker.yml
79 lines (72 loc) · 1.75 KB
/
.woodpecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
when:
- branch: [develop, stable]
event: push
steps:
app-compile:
image: gramoss/mini-build-base:20240521
pull: true
environment:
MIX_ENV: prod
commands:
- xbps-install -Sy git
- mix deps.get
- mix compile
app-assets-build:
image: node:20
commands:
- npm install --location=global [email protected]
- pnpm --prefix assets install
- pnpm --prefix assets run deploy
- pnpm --prefix webapps install
- pnpm --prefix webapps build
app-release:
image: gramoss/mini-build-base:20240521
environment:
MIX_ENV: prod
commands:
- xbps-install -Sy git
- mix local.hex --force
- mix local.rebar --force
- mix phx.digest
- mix release
develop-image-build-push:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: gramoss/policr-mini
username: gramoss
password:
from_secret: gramoss_pass
dockerfile: Dockerfile.multiarch
platforms: linux/amd64,linux/arm64/v8
tags:
- develop
when:
branch: develop
event: push
stable-image-tags-gen:
image: busybox
when:
branch: stable
event: push
commands:
- echo -n "$(date +'%Y%m%d'),latest" > .tags
stable-image-build-push:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: gramoss/policr-mini
username: gramoss
password:
from_secret: gramoss_pass
dockerfile: Dockerfile.multiarch
platforms: linux/amd64,linux/arm64/v8
when:
branch: stable
event: push
schedule-pre-deploy:
image: curlimages/curl
commands:
- curl -f -X POST $PRE_DEPLOY_HOOK_URL
secrets: [PRE_DEPLOY_HOOK_URL]
when:
branch: develop
event: push