Skip to content

Commit

Permalink
Support ARM64 for Packet
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 22, 2017
1 parent c00a9fc commit 64475ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ faas-cli
faas-cli-darwin
faas-cli-armhf
faas-cli.exe
faas-cli-arm64

*.jpg
*.pyc
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ deploy:
- faas-cli-darwin
- faas-cli-armhf
- faas-cli.exe
- faas-cli-amd64
skip_cleanup: true
on:
tags: true
4 changes: 3 additions & 1 deletion Dockerfile.redist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags
&& GOARCH=arm GOARM=6 CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli-armhf \
&& CGO_ENABLED=0 GOOS=darwin go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli-darwin \
&& CGO_ENABLED=0 GOOS=linux go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli \
&& CGO_ENABLED=0 GOOS=windows go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli.exe
&& CGO_ENABLED=0 GOOS=windows go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli.exe \
&& CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build --ldflags "-s -w -X github.com/alexellis/faas-cli/commands.GitCommit=${GIT_COMMIT} -X github.com/alexellis/faas-cli/commands.Version=${VERSION}" -a -installsuffix cgo -o faas-cli-arm64

FROM alpine:latest
RUN apk --no-cache add ca-certificates
Expand All @@ -25,5 +26,6 @@ COPY --from=0 /go/src/github.com/alexellis/faas-cli/faas-cli .
COPY --from=0 /go/src/github.com/alexellis/faas-cli/faas-cli-darwin .
COPY --from=0 /go/src/github.com/alexellis/faas-cli/faas-cli-armhf .
COPY --from=0 /go/src/github.com/alexellis/faas-cli/faas-cli.exe .
COPY --from=0 /go/src/github.com/alexellis/faas-cli/faas-cli-arm64 .

CMD ["./faas"]
1 change: 1 addition & 0 deletions build_redist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_p
docker cp faas-cli:/root/faas-cli . && \
docker cp faas-cli:/root/faas-cli-darwin . && \
docker cp faas-cli:/root/faas-cli-armhf . && \
docker cp faas-cli:/root/faas-cli-arm64 . && \
docker cp faas-cli:/root/faas-cli.exe . && \
docker rm -f faas-cli

0 comments on commit 64475ae

Please sign in to comment.