From 611384f024e3c268721a96424b3b8b0aa4f23d2b Mon Sep 17 00:00:00 2001 From: Jerry Dimitriou Date: Thu, 19 Sep 2024 17:34:01 +0300 Subject: [PATCH] zip fix --- build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index d478584b..5a993223 100755 --- a/build.sh +++ b/build.sh @@ -20,11 +20,16 @@ docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n for sch in $PROJECT/rules/sch/*.sch; do docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/schematron:/target klakegg/schematron prepare /src/rules/sch/$(basename $sch) /target/$(basename $sch) done -rm -rf /src/PEPPOLBIS-Upgrade-Schematron.zip -zip -r target/site/files/PEPPOLBIS-Upgrade-Schematron.zip target/schematron + +# Fix ownership +docker run --rm -i -v $PROJECT:/src alpine:3.6 chown -R $(id -g $USER).$(id -g $USER) /src/target + +rm -rf $PROJECT/target/site/files/PEPPOLBIS-Upgrade-Schematron.zip +zip -r $PROJECT/target/site/files/PEPPOLBIS-Upgrade-Schematron.zip target/schematron # Example files -zip -r target/site/files/PEPPOLBIS-Examples.zip rules/examples +rm -rf $PROJECT/target/site/files/PEPPOLBIS-Examples.zip +zip -r $PROJECT/target/site/files/PEPPOLBIS-Examples.zip $PROJECT/rules/examples # Guides docker run --rm -i -v $PROJECT:/documents -v $PROJECT/target:/target difi/asciidoctor