File tree 4 files changed +60
-1
lines changed
4 files changed +60
-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
+ CADDY_GIT_VERSION : " 1.0.4"
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
+ CADDY_GIT_VERSION=${{ env.CADDY_GIT_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
1
+ {
2
+ git {
3
+ repo basemap {
4
+ base_dir {$SITE_DIR:sites}
5
+ url https://github.com/matplotlib/basemap.git
6
+ branch gh-pages
7
+ }
8
+ repo cheatsheets {
9
+ base_dir {$SITE_DIR:sites}
10
+ url https://github.com/matplotlib/cheatsheets.git
11
+ branch gh-pages
12
+ }
13
+ repo governance {
14
+ base_dir {$SITE_DIR:sites}
15
+ url https://github.com/matplotlib/governance.git
16
+ branch gh-pages
17
+ }
18
+ repo matplotblog {
19
+ base_dir {$SITE_DIR:sites}
20
+ url https://github.com/matplotlib/matplotblog.git
21
+ branch gh-pages
22
+ }
23
+ repo matplotlib.github.com {
24
+ base_dir {$SITE_DIR:sites}
25
+ url https://github.com/matplotlib/matplotlib.github.com.git
26
+ branch main
27
+ }
28
+ repo mpl-altair {
29
+ base_dir {$SITE_DIR:sites}
30
+ url https://github.com/matplotlib/mpl-altair.git
31
+ branch gh-pages
32
+ }
33
+ repo mpl-bench {
34
+ base_dir {$SITE_DIR:sites}
35
+ url https://github.com/matplotlib/mpl-bench.git
36
+ branch gh-pages
37
+ }
38
+ repo mpl-brochure-site {
39
+ base_dir {$SITE_DIR:sites}
40
+ url https://github.com/matplotlib/mpl-brochure-site.git
41
+ branch gh-pages
42
+ }
43
+ repo mpl-third-party {
44
+ base_dir {$SITE_DIR:sites}
45
+ url https://github.com/matplotlib/mpl-third-party.git
46
+ branch gh-pages
47
+ }
48
+ }
49
+ }
50
+
1
51
# Snippet to allow working with git checkouts of project sites that become
2
52
# toplevel directories.
3
53
(subproject) {
10
60
try_files {path} .html {path}
11
61
file_server
12
62
}
63
+ route /webhook/ {args.0} {
64
+ git update repo {args.0}
65
+ }
13
66
}
14
67
15
68
# Set this variable in the environment when running in production.
Original file line number Diff line number Diff line change 1
1
ARG CADDY_VERSION=latest
2
+ ARG CADDY_GIT_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/greenpau/caddy-git@${CADDY_GIT_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
+ CADDY_GIT_VERSION ?= 1.0.4
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=CADDY_GIT_VERSION=v$(CADDY_GIT_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