Skip to content

Commit

Permalink
optimize download of binaries and jar file size
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen committed Oct 8, 2024
1 parent a45665a commit 77f2972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/docker-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ build_update_pom() {
cd ../.. && ./mvnw clean && ./mvnw --batch-mode release:update-versions -DdevelopmentVersion=${tag}-SNAPSHOT && ./mvnw spotless:apply && ./mvnw install -DskipTests
cd .github/scripts
echo "Removing unnecessary binaries from the jar file"
zip -d ../../target/*.jar BOOT-INF/classes/executables/wrongsecrets-golang
zip -d ../../target/*.jar BOOT-INF/classes/executables/wrongsecrets-golang-arm
zip -d ../../target/*.jar BOOT-INF/classes/executables/wrongsecrets-dotnet
zip -d ../../target/*.jar BOOT-INF/classes/executables/wrongsecrets-dotnet-arm
zip -d ../../target/*.jar BOOT-INF/classes/executables/wrongsecrets-dotnet-linux
Expand Down

0 comments on commit 77f2972

Please sign in to comment.