Adding a script to capture the variable
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s

Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
This commit is contained in:
Alex Lau 2023-10-23 12:05:24 +08:00
parent 68abc5d549
commit 991c51f411
No known key found for this signature in database
GPG Key ID: 3F28752074CC2261
2 changed files with 12 additions and 11 deletions

View File

@ -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"]

9
runner.sh Normal file
View File

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