Skip to content

Commit

Permalink
fix path of template.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Jul 13, 2020
1 parent ff37e95 commit cbf614c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ RUN cd /tools && \
nimble build -Y && \
cp -p bin/* /

COPY template.spec .
COPY template.spec /
COPY entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eux

/replacetool \
--specfile:template.spec \
--specfile:/template.spec \
--summary:"$INPUT_SUMMARY" \
--package-root:"$INPUT_PACKAGE_ROOT" \
--package:"$INPUT_PACKAGE" \
Expand All @@ -20,7 +20,7 @@ readonly RPMBUILD_SPEC_DIR="$RPMBUILD_DIR/SPECS"
(
readonly WORKDIR="/tmp/work"
mkdir "$WORKDIR"
cp template.spec "$WORKDIR"
cp /template.spec "$WORKDIR"
cp -rp "$INPUT_PACKAGE_ROOT" "$WORKDIR/$INPUT_PACKAGE"
cd "$WORKDIR"
tar czf tmp.tar.gz "$INPUT_PACKAGE/"
Expand Down

0 comments on commit cbf614c

Please sign in to comment.