-
-
Notifications
You must be signed in to change notification settings - Fork 278
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
112 lines (103 loc) · 2.41 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
112 lines (103 loc) · 2.41 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
variable "JEKYLL_VERSION" { default = "4.4.1" }
variable "PAGES_RUBY_VERSION" { default = "3.3.4" }
variable "PAGES_JEKYLL_VERSION" { default = "3.10.0" }
variable "GITHUB_PAGES_VERSION" { default = "232" }
variable "IMAGE_NAMESPACE" { default = "jekyll" }
variable "RUBY_VERSION" { default = "3.4" }
variable "COREPACK_PACKAGE_SPECS" {
default = [
"pnpm@10.34.4",
]
}
variable "PAGES_COREPACK_PACKAGE_SPECS" {
default = []
}
variable "RUNTIME_APT_PACKAGES" {
default = [
"nodejs",
"ca-certificates",
"git",
]
}
variable "BUILD_APT_PACKAGES" {
default = [
"libffi-dev",
"imagemagick",
"libvips-dev",
"build-essential",
"libmagickwand-dev",
"libsqlite3-dev",
"libxml2-dev",
"libxslt1-dev",
"libyaml-dev",
"pkg-config",
"zlib1g-dev",
"cmake",
]
}
variable "JEKYLL_EXTRA_GEMS" {
default = [
"jemoji",
"kramdown",
"html-proofer",
"jekyll-mentions",
"jekyll-paginate",
"jekyll-coffeescript",
"jekyll-redirect-from",
"jekyll-sass-converter",
"jekyll-commonmark",
"jekyll-compose",
"jekyll-sitemap",
"jekyll-feed",
"RedCloth",
"minima",
]
}
group "default" {
targets = [
"jekyll",
"pages",
]
}
target "_common" {
context = "."
dockerfile = "Dockerfile"
args = {
APT_PURGE_PACKAGES = ""
APT_PACKAGES = join(" ", concat(RUNTIME_APT_PACKAGES, BUILD_APT_PACKAGES))
COREPACK_PACKAGE_SPECS = join(" ", COREPACK_PACKAGE_SPECS)
}
labels = {
"org.opencontainers.image.source" = "https://github.com/envygeeks/jekyll-docker"
"org.opencontainers.image.licenses" = "MIT"
}
}
target "jekyll" {
inherits = ["_common"]
tags = [
"${IMAGE_NAMESPACE}/jekyll:latest",
"${IMAGE_NAMESPACE}/jekyll:${JEKYLL_VERSION}",
"${IMAGE_NAMESPACE}/jekyll:4.4",
"${IMAGE_NAMESPACE}/jekyll:4",
]
args = {
BASE_IMAGE = "ruby:${RUBY_VERSION}"
EXTRA_GEMS = join(" ", JEKYLL_EXTRA_GEMS)
JEKYLL_GEM_VERSION = "${JEKYLL_VERSION}"
JEKYLL_VERSION = "${JEKYLL_VERSION}"
}
}
target "pages" {
inherits = ["_common"]
tags = [
"${IMAGE_NAMESPACE}/jekyll:pages",
]
args = {
BASE_IMAGE = "ruby:${PAGES_RUBY_VERSION}"
APT_PURGE_PACKAGES = join(" ", BUILD_APT_PACKAGES)
COREPACK_PACKAGE_SPECS = join(" ", PAGES_COREPACK_PACKAGE_SPECS)
JEKYLL_GEM_VERSION = "${GITHUB_PAGES_VERSION}"
JEKYLL_VERSION = "${PAGES_JEKYLL_VERSION}"
JEKYLL_GEM = "github-pages"
}
}