Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
Add arm64 support (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: odidev <[email protected]>
  • Loading branch information
ozbillwang and odidev committed Apr 10, 2022
1 parent 63bd3bf commit 6658483
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:edge

ARG VERSION=1.7.3.2
ARG VERSION=1.7.4.3-r0

RUN apk --no-cache add socat=${VERSION}

Expand Down
10 changes: 4 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ curl -s https://pkgs.alpinelinux.org/package/edge/main/x86/socat | docker run -i
latest=$(awk '/^Version/ {print $2}' report)

sum=0
echo "Lastest release is: ${latest}"
echo "Latest release is: ${latest}"

tags=`curl -s https://hub.docker.com/v2/repositories/${image}/tags/ |jq -r .results[].name`

Expand All @@ -33,13 +33,11 @@ do
done

if [[ ( $sum -ne 1 ) || ( $1 == "rebuild" ) ]];then
docker build --build-arg VERSION=${latest} --no-cache -t ${image}:${latest} .
docker tag ${image}:${latest} ${image}:latest

if [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker push ${image}:${latest}
docker push ${image}:latest
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use
docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg VERSION=${latest} -t ${image}:${latest} -t ${image}:latest .
fi

fi

0 comments on commit 6658483

Please sign in to comment.