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

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

* build: use alternative repositories

* build: fix

* build: validate taglib downloads

* build: control concurrency

* build: validate xx version

* build: remove taglib download validation as the version can be changed as an argument.
This commit is contained in:
Deluan Quintão
2024-10-15 16:46:01 -04:00
committed by GitHub
parent af1add4312
commit 214287e00d
13 changed files with 645 additions and 365 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/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"