Skip to content

Commit 65d81fb

Browse files
evan-goodefhbash
authored andcommitted
Dockerfile: fail early if local RPM install fails
1 parent c3b7b65 commit 65d81fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ RUN set -x && \
4141

4242
# install local RPMs if available
4343
COPY ./rpms/ /opt/ci/rpms/
44-
RUN rm /opt/ci/rpms/*-{devel,debuginfo,debugsource}*.rpm; \
44+
RUN set -x && \
45+
rm /opt/ci/rpms/*-{devel,debuginfo,debugsource}*.rpm; \
4546
if [ -n "$(find /opt/ci/rpms/ -maxdepth 1 -name '*.rpm' -print -quit)" ]; then \
46-
dnf5 -y install /opt/ci/rpms/*.rpm --disableplugin=local; \
47+
dnf5 -y install /opt/ci/rpms/*.rpm --disableplugin=local && \
4748
dnf5 -y versionlock add $(rpm -qp --queryformat '%{NAME}\n' /opt/ci/rpms/*.rpm | sort | uniq); \
4849
fi
4950

0 commit comments

Comments
 (0)