mirror of
https://gitea.massivebox.net/massivebox/ecodash.git
synced 2025-01-16 05:37:32 +01:00
19 lines
599 B
Bash
19 lines
599 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
ARCH=$(arch)
|
||
|
|
||
|
# This is a workaround to Woodpecker's inability to give files it has just built to Docker BuildX to build new images.
|
||
|
# After compiling the binaries in the "build-and-format" step of woodpecker.yml, we upload them to the cloud and fetch them from here.
|
||
|
|
||
|
if [ "$ARCH" = "x86_64" ]; then
|
||
|
echo "detected amd64"
|
||
|
curl https://cloud.massivebox.net/api/public/dl/uZaDQXAa -o app
|
||
|
elif [ "$ARCH" = "aarch64" ]; then
|
||
|
echo "deteched arm"
|
||
|
curl https://cloud.massivebox.net/api/public/dl/EhM62nhf -o app
|
||
|
else
|
||
|
echo "unsupported architecture"
|
||
|
return 1
|
||
|
fi
|
||
|
|
||
|
return 0
|