File tree 4 files changed +50
-1
lines changed
4 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 9
9
REGISTRY : ghcr.io
10
10
IMAGE_NAME : ${{ github.repository }}
11
11
CADDY_VERSION : " 2.4.6"
12
+ WEBHOOK_VERSION : " 1.0.8"
12
13
13
14
jobs :
14
15
build-and-push-image :
41
42
file : ./Containerfile
42
43
build-args : |
43
44
CADDY_VERSION=${{ env.CADDY_VERSION }}
45
+ WEBHOOK_VERSION=${{ env.WEBHOOK_VERSION }}
44
46
push : true
45
47
tags : ${{ steps.meta.outputs.tags }}
46
48
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 33
33
rewrite / /mpl-brochure-site/index.html
34
34
rewrite @brochure /mpl-brochure-site {http.matchers.file.relative}
35
35
36
+ route /webhook {
37
+ webhook {
38
+ repo https://github.com/matplotlib/basemap.git
39
+ path {$SITE_DIR:sites}/basemap
40
+ branch gh-pages
41
+ }
42
+ webhook {
43
+ repo https://github.com/matplotlib/cheatsheets.git
44
+ path {$SITE_DIR:sites}/cheatsheets
45
+ branch gh-pages
46
+ }
47
+ webhook {
48
+ repo https://github.com/matplotlib/governance.git
49
+ path {$SITE_DIR:sites}/governance
50
+ branch gh-pages
51
+ }
52
+ webhook {
53
+ repo https://github.com/matplotlib/matplotblog.git
54
+ path {$SITE_DIR:sites}/matplotblog
55
+ branch gh-pages
56
+ }
57
+ webhook {
58
+ repo https://github.com/matplotlib/mpl-altair.git
59
+ path {$SITE_DIR:sites}/mpl-altair
60
+ branch gh-pages
61
+ }
62
+ webhook {
63
+ repo https://github.com/matplotlib/mpl-bench.git
64
+ path {$SITE_DIR:sites}/mpl-bench
65
+ branch gh-pages
66
+ }
67
+ webhook {
68
+ repo https://github.com/matplotlib/mpl-third-party.git
69
+ path {$SITE_DIR:sites}/mpl-third-party
70
+ branch gh-pages
71
+ }
72
+ webhook {
73
+ repo https://github.com/matplotlib/mpl-brochure-site.git
74
+ path {$SITE_DIR:sites}/mpl-brochure-site
75
+ branch gh-pages
76
+ }
77
+ }
78
+
36
79
# Finally try any of the versioned docs.
37
80
handle {
38
81
root * {$SITE_DIR:sites}/matplotlib.github.com
Original file line number Diff line number Diff line change 1
1
ARG CADDY_VERSION=latest
2
+ ARG WEBHOOK_VERSION=latest
2
3
FROM docker.io/library/caddy:${CADDY_VERSION}-builder AS builder
3
4
4
- RUN xcaddy build
5
+ RUN xcaddy build \
6
+ --with github.com/WingLim/caddy-webhook@${WEBHOOK_VERSION}
5
7
6
8
FROM docker.io/library/caddy:${CADDY_VERSION}
7
9
Original file line number Diff line number Diff line change 1
1
RUNTIME ?= podman
2
2
CADDY_IMAGE ?= caddy-mpl
3
3
CADDY_VERSION ?= 2.4.6
4
+ WEBHOOK_VERSION ?= 1.0.8
4
5
5
6
serve :
6
7
mkdir -p sites
15
16
image :
16
17
$(RUNTIME ) build \
17
18
--build-arg=CADDY_VERSION=$(CADDY_VERSION ) \
19
+ --build-arg=WEBHOOK_VERSION=v$(WEBHOOK_VERSION ) \
18
20
-t $(CADDY_IMAGE ) :$(CADDY_VERSION ) \
19
21
-f Containerfile
20
22
You can’t perform that action at this time.
0 commit comments