Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Build ARM64 and ARMv7 versions as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gmta committed Oct 19, 2021
1 parent d42855b commit 628ae4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
7 changes: 0 additions & 7 deletions docker-compose.build.yml

This file was deleted.

18 changes: 8 additions & 10 deletions scripts/build-and-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ if [ -z "${targetVersion}" ]; then
exit 1
fi

pushd $(dirname $0)/../
pushd $(dirname $0)/../proxy/ >/dev/null

dockerComposeFiles='-f docker-compose.yml -f docker-compose.build.yml'

buildAndPush() {
local version=$1
BUILD_VERSION=${version} docker-compose ${dockerComposeFiles} build --no-cache
BUILD_VERSION=${version} docker-compose ${dockerComposeFiles} push
}
imageName=isaaceindhoven/velocita-proxy

git tag "v${targetVersion}"
git push --tags

buildAndPush "${targetVersion}"
buildAndPush latest
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--tag ${imageName}:${targetVersion} \
--tag ${imageName}:latest \
--push \
.

0 comments on commit 628ae4e

Please sign in to comment.