mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
fix:'[]' is missing then yq eval failed
This commit is contained in:
parent
f4c3f3ea0f
commit
b1a6b0cc99
|
|
@ -12,7 +12,7 @@ RUN yum install -q -y ${BUILD_TOOLS} \
|
|||
WORKDIR package
|
||||
COPY packages.yaml .
|
||||
COPY --from=mikefarah/yq:4.11.1 /usr/bin/yq /usr/bin/yq
|
||||
RUN yq eval ".common[],.rpms[],.${OS}[],.${OS}${OS_VERSION}" packages.yaml > packages.list
|
||||
RUN yq eval ".common[],.rpms[],.${OS}[],.${OS}${OS_VERSION}[]" packages.yaml > packages.list
|
||||
|
||||
RUN sort -u packages.list | xargs repotrack -p ${DIR} \
|
||||
&& createrepo -d ${DIR} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue