File tree Expand file tree Collapse file tree 2 files changed +41
-3
lines changed Expand file tree Collapse file tree 2 files changed +41
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,25 @@ workflows:
10
10
context :
11
11
- " github"
12
12
- " Docker Hub"
13
- - example-build :
13
+ - test :
14
14
requires :
15
15
- build
16
+ matrix :
17
+ parameters :
18
+ platform :
19
+ - linux/amd64
20
+ - linux/arm64
21
+ context :
22
+ - " github"
23
+ - " Docker Hub"
24
+ - example-build :
25
+ requires :
26
+ - test
16
27
context :
17
28
- " github"
18
29
- " Docker Hub"
19
30
- example-deploy :
20
31
requires :
21
- - build
22
32
- example-build
23
33
context :
24
34
- " github"
50
60
build :
51
61
machine :
52
62
image : ubuntu-2204:2023.02.1
63
+ resource_class : large
53
64
steps :
54
65
- setup
55
66
- checkout
74
85
--no-cache \
75
86
--progress=plain \
76
87
--push .
88
+ test :
89
+ parameters :
90
+ platform :
91
+ type : enum
92
+ enum : ["linux/amd64", "linux/arm64"]
93
+ machine :
94
+ image : ubuntu-2204:2023.02.1
95
+ resource_class : medium
96
+ steps :
97
+ - run :
98
+ name : Test docker image (<< parameters.platform >>)
99
+ no_output_timeout : 1h
100
+ command : |
101
+ echo "${DOCKER_PASS}" | docker login -u "${DOCKER_USER}" --password-stdin
102
+ docker pull ${DOCKER_USER}/asciidoctor:${CIRCLE_TAG:-latest}
103
+ docker run --rm \
104
+ -v $(pwd)/src/doc:/documents/ \
105
+ -v $(pwd)/.examples/dist:/dist \
106
+ --platform << parameters.platform >> \
107
+ ${DOCKER_USER}/asciidoctor:${CIRCLE_TAG:-latest} \
108
+ inliner --help
77
109
example-build :
78
110
machine :
79
111
image : ubuntu-2204:2023.02.1
112
+ resource_class : large
80
113
steps :
81
114
- checkout
82
115
- run :
Original file line number Diff line number Diff line change @@ -213,17 +213,22 @@ RUN apk --no-cache add \
213
213
# 'Ruby' packages
214
214
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
215
215
# Install barby - @see: https://github.com/toretore/barby
216
+ # (Re)Install nogokiri - @see: https://nokogiri.org/tutorials/installing_nokogiri.html#other-installation-scenarios
216
217
# Install asciidoctor-multipage - @see: https://github.com/owenh000/asciidoctor-multipage
217
218
# Install asciidoctor-lists - @see: https://github.com/Alwinator/asciidoctor-lists
218
219
RUN apk add --no-cache --virtual .rubymakedepends \
219
220
build-base \
220
221
libxml2-dev \
222
+ libxslt-dev \
221
223
ruby-dev \
222
224
&& gem install --no-document \
223
225
barby rqrcode chunky_png \
224
226
asciidoctor-multipage \
225
227
asciidoctor-lists \
226
- && apk del -r --no-cache .rubymakedepends
228
+ && apk del -r --no-cache .rubymakedepends \
229
+ # @see: https://github.com/asciidoctor/docker-asciidoctor/issues/430
230
+ # @see: https://github.com/asciidoctor/docker-asciidoctor/blob/d16e85e04c46ed02414565aa26b67a809f4c64c1/Dockerfile#L139
231
+ && if [[ ${TARGETARCH} == arm64 ]]; then gem uninstall nokogiri -v '> 1.14' ; fi
227
232
228
233
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
229
234
# 'Python' packages
You can’t perform that action at this time.
0 commit comments