Accepting request 974570 from home:dancermak:auto_update:TW

Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures

OBS-URL: https://build.opensuse.org/request/show/974570
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/openjdk-17-image?expand=0&rev=2
This commit is contained in:
Alexander Herzig 2022-05-04 07:55:07 +00:00 committed by Git OBS Bridge
parent 84d7f1b9f3
commit 501d481ea7
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,7 @@ LABEL com.suse.release-stage="beta"
# endlabelprefix
RUN set -euo pipefail && zypper -n in --no-recommends java-17-openjdk && zypper -n clean && rm -rf /var/log/*
RUN set -euo pipefail; zypper -n in --no-recommends java-17-openjdk; zypper -n clean; rm -rf /var/log/*
ENV JAVA_BINDIR="/usr/lib64/jvm/java/bin"
ENV JAVA_HOME="/usr/lib64/jvm/java"

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue May 3 09:09:21 UTC 2022 - Dan Čermák <dcermak@suse.com>
- Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures