File tree 3 files changed +12
-90
lines changed
3 files changed +12
-90
lines changed Original file line number Diff line number Diff line change @@ -84,41 +84,15 @@ WORKDIR ${HOME}
84
84
85
85
86
86
87
- FROM main AS test
87
+ FROM alpine/git AS pdidl
88
88
89
+ RUN git -C /root clone --recurse-submodules https://github.com/pdidev/pdi.git /root/pdi
89
90
90
- USER root:root
91
- WORKDIR /root
92
- ENV HOME=/root
93
91
94
- RUN set -ex \
95
- && export DEBIAN_FRONTEND=noninteractive \
96
- && apt-get update -y \
97
- && apt-get upgrade -y \
98
- && apt-get install -y --no-install-recommends \
99
- ca-certificates \
100
- git
101
-
102
- USER ci:ci
103
- WORKDIR /home/ci
104
- ENV HOME=/home/ci
105
92
106
- RUN git clone --recurse-submodules https://github.com/pdidev/pdi.git
107
-
108
- USER root:root
109
- WORKDIR /root
110
- ENV HOME=/root
111
-
112
- RUN set -ex \
113
- && export DEBIAN_FRONTEND=noninteractive \
114
- && apt-get purge -y \
115
- ca-certificates \
116
- git
117
-
118
- USER ci:ci
119
- WORKDIR /home/ci
120
- ENV HOME=/home/ci
93
+ FROM main AS test
121
94
95
+ COPY --from=pdidl --chown=ci:ci /root/pdi /home/ci/pdi
122
96
123
97
RUN export VERBOSE=1 \
124
98
&& bash pdi/bin/build_and_run_all_tests
Original file line number Diff line number Diff line change @@ -73,41 +73,15 @@ WORKDIR ${HOME}
73
73
74
74
75
75
76
- FROM main AS test
77
-
76
+ FROM alpine/git AS pdidl
78
77
79
- USER root:root
80
- WORKDIR /root
81
- ENV HOME=/root
78
+ RUN git -C /root clone --recurse-submodules https://github.com/pdidev/pdi.git /root/pdi
82
79
83
- RUN set -ex \
84
- && export DEBIAN_FRONTEND=noninteractive \
85
- && apt-get update -y \
86
- && apt-get upgrade -y \
87
- && apt-get install -y --no-install-recommends \
88
- ca-certificates \
89
- git
90
80
91
- USER ci:ci
92
- WORKDIR /home/ci
93
- ENV HOME=/home/ci
94
81
95
- RUN git clone --recurse-submodules https://github.com/pdidev/pdi.git
96
-
97
- USER root:root
98
- WORKDIR /root
99
- ENV HOME=/root
100
-
101
- RUN set -ex \
102
- && export DEBIAN_FRONTEND=noninteractive \
103
- && apt-get purge -y \
104
- ca-certificates \
105
- git
106
-
107
- USER ci:ci
108
- WORKDIR /home/ci
109
- ENV HOME=/home/ci
82
+ FROM main AS test
110
83
84
+ COPY --from=pdidl --chown=ci:ci /root/pdi /home/ci/pdi
111
85
112
86
RUN export VERBOSE=1 \
113
87
&& bash pdi/bin/build_and_run_all_tests
Original file line number Diff line number Diff line change @@ -147,41 +147,15 @@ ENV HOME=/home/ci
147
147
148
148
149
149
150
- FROM main AS test
150
+ FROM alpine/git AS pdidl
151
151
152
+ RUN git -C /root clone --recurse-submodules https://github.com/pdidev/pdi.git /root/pdi
152
153
153
- USER root:root
154
- WORKDIR /root
155
- ENV HOME=/root
156
154
157
- RUN set -ex \
158
- && export DEBIAN_FRONTEND=noninteractive \
159
- && apt-get update -y \
160
- && apt-get upgrade -y \
161
- && apt-get install -y --no-install-recommends \
162
- ca-certificates \
163
- git
164
-
165
- USER ci:ci
166
- WORKDIR /home/ci
167
- ENV HOME=/home/ci
168
155
169
- RUN git clone --recurse-submodules https://github.com/pdidev/pdi.git
170
-
171
- USER root:root
172
- WORKDIR /root
173
- ENV HOME=/root
174
-
175
- RUN set -ex \
176
- && export DEBIAN_FRONTEND=noninteractive \
177
- && apt-get purge -y \
178
- ca-certificates \
179
- git
180
-
181
- USER ci:ci
182
- WORKDIR /home/ci
183
- ENV HOME=/home/ci
156
+ FROM main AS test
184
157
158
+ COPY --from=pdidl --chown=ci:ci /root/pdi /home/ci/pdi
185
159
186
160
RUN export VERBOSE=1 \
187
161
&& bash pdi/bin/build_and_run_all_tests
You can’t perform that action at this time.
0 commit comments