Fix installation of docker-compose on armv7l

This commit is contained in:
Justin Moy 2022-09-12 15:01:33 +01:00
parent 7f5acf1ac5
commit 42edfb33c9
2 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
*.swo
*.swp
.pnpm-debug.log
.env*
github.secrets

View file

@ -113,8 +113,12 @@ else
fi
fi
if ! command -v docker-compose >/dev/null; then
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
if ! docker-compose --version >/dev/null; then
arch="$(uname -m)"
if [[ "$arch" == "armv7l" ]]; then
arch="armv7"
fi
sudo curl -L "https://github.com/docker/compose/releases/download/v2.3.4/docker-compose-$(uname -s)-${arch}" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
fi