Revert "build: new pipeline, new way to cross-compile and build docker images locally. (#3383)"

This reverts commit b14c790641.
This commit is contained in:
Deluan
2024-10-14 18:52:02 -04:00
parent b14c790641
commit af1add4312
13 changed files with 368 additions and 610 deletions
-16
View File
@@ -1,16 +0,0 @@
#!/bin/bash
# Use sed to extract the value of the -o parameter
output=$(echo "$@" | sed -n 's/.*-o \([^ ]*\).*/\1/p')
# Ensure the directory part of the output exists
mkdir -p "$(dirname "$output")"
# Build the source folder name based on GOOS, GOARCH and GOARM.
source="${GOOS}_${GOARCH}"
if [ "$GOARCH" = "arm" ]; then
source="${source}_${GOARM}"
fi
# Copy the output to the desired location
cp binaries/"${source}"/navidrome* "$output"