File tree Expand file tree Collapse file tree 4 files changed +50
-1
lines changed
Expand file tree Collapse file tree 4 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 99 REGISTRY : ghcr.io
1010 IMAGE_NAME : ${{ github.repository }}
1111 CADDY_VERSION : " 2.4.6"
12+ WEBHOOK_VERSION : " 1.0.8"
1213
1314jobs :
1415 build-and-push-image :
4142 file : ./Containerfile
4243 build-args : |
4344 CADDY_VERSION=${{ env.CADDY_VERSION }}
45+ WEBHOOK_VERSION=${{ env.WEBHOOK_VERSION }}
4446 push : true
4547 tags : ${{ steps.meta.outputs.tags }}
4648 labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 3333 rewrite / /mpl-brochure-site/index.html
3434 rewrite @brochure /mpl-brochure-site {http.matchers.file.relative}
3535
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+
3679 # Finally try any of the versioned docs.
3780 handle {
3881 root * {$SITE_DIR:sites}/matplotlib.github.com
Original file line number Diff line number Diff line change 11ARG CADDY_VERSION=latest
2+ ARG WEBHOOK_VERSION=latest
23FROM docker.io/library/caddy:${CADDY_VERSION}-builder AS builder
34
4- RUN xcaddy build
5+ RUN xcaddy build \
6+ --with github.com/WingLim/caddy-webhook@${WEBHOOK_VERSION}
57
68FROM docker.io/library/caddy:${CADDY_VERSION}
79
Original file line number Diff line number Diff line change 11RUNTIME ?= podman
22CADDY_IMAGE ?= caddy-mpl
33CADDY_VERSION ?= 2.4.6
4+ WEBHOOK_VERSION ?= 1.0.8
45
56serve :
67 mkdir -p sites
1516image :
1617 $(RUNTIME ) build \
1718 --build-arg=CADDY_VERSION=$(CADDY_VERSION ) \
19+ --build-arg=WEBHOOK_VERSION=v$(WEBHOOK_VERSION ) \
1820 -t $(CADDY_IMAGE ) :$(CADDY_VERSION ) \
1921 -f Containerfile
2022
You can’t perform that action at this time.
0 commit comments