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 + +