From 991c51f41108beaf24a53b490d8f8e6697981c0a Mon Sep 17 00:00:00 2001 From: "Alex Lau (AvengerMoJo)" Date: Mon, 23 Oct 2023 12:05:24 +0800 Subject: [PATCH] Adding a script to capture the variable Signed-off-by: Alex Lau (AvengerMoJo) --- Dockerfile | 14 +++----------- runner.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 runner.sh diff --git a/Dockerfile b/Dockerfile index 052af96..a766db9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,6 @@ RUN zypper --non-interactive update RUN zypper --non-interactive install osc RUN zypper --non-interactive clean --all -# COPY hello.sh /hello.sh -# RUN chmod +x /hello.sh -# RUN mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} - -ENTRYPOINT echo $osc-user $osc-path $osc-package -ENTRYPOINT echo $1 $2 $3 -ENTRYPOINT echo $INPUT_OSC-USER $INPUT_OSC-PATH $INPUT_OSC-PACKAGE -RUN osc checkout $INPUT_OSC-PATH $INPUT_OSC-PACKAGE -RUN osc buildlog openSUSE_Factory x86_64 - - +COPY runner.sh /runner.sh +RUN chmod +x /runner.sh +ENTRYPOINT ["/runner.sh"] diff --git a/runner.sh b/runner.sh new file mode 100644 index 0000000..face873 --- /dev/null +++ b/runner.sh @@ -0,0 +1,9 @@ +!/bin/sh + +echo $osc-user $osc-path $osc-package +echo $1 $2 $3 +echo $INPUT_OSC-USER $INPUT_OSC-PATH $INPUT_OSC-PACKAGE +osc checkout $INPUT_OSC-PATH $INPUT_OSC-PACKAGE +osc buildlog openSUSE_Factory x86_64 + +