cmd/nginx-auth: build for arm64

Fixes https://github.com/tailscale/tailscale/issues/6978

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/7384/head
Denton Gentry 2 years ago committed by Denton Gentry
parent 9ab992e7a1
commit bf7573c9ee

@ -2,30 +2,31 @@
set -e set -e
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o tailscale.nginx-auth . VERSION=0.1.3
for ARCH in amd64 arm64; do
CGO_ENABLED=0 GOARCH=${ARCH} GOOS=linux go build -o tailscale.nginx-auth .
VERSION=0.1.2 mkpkg \
--out=tailscale-nginx-auth-${VERSION}-${ARCH}.deb \
mkpkg \
--out=tailscale-nginx-auth-${VERSION}-amd64.deb \
--name=tailscale-nginx-auth \ --name=tailscale-nginx-auth \
--version=${VERSION} \ --version=${VERSION} \
--type=deb \ --type=deb \
--arch=amd64 \ --arch=${ARCH} \
--postinst=deb/postinst.sh \ --postinst=deb/postinst.sh \
--postrm=deb/postrm.sh \ --postrm=deb/postrm.sh \
--prerm=deb/prerm.sh \ --prerm=deb/prerm.sh \
--description="Tailscale NGINX authentication protocol handler" \ --description="Tailscale NGINX authentication protocol handler" \
--files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md --files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md
mkpkg \ mkpkg \
--out=tailscale-nginx-auth-${VERSION}-amd64.rpm \ --out=tailscale-nginx-auth-${VERSION}-${ARCH}.rpm \
--name=tailscale-nginx-auth \ --name=tailscale-nginx-auth \
--version=${VERSION} \ --version=${VERSION} \
--type=rpm \ --type=rpm \
--arch=amd64 \ --arch=${ARCH} \
--postinst=rpm/postinst.sh \ --postinst=rpm/postinst.sh \
--postrm=rpm/postrm.sh \ --postrm=rpm/postrm.sh \
--prerm=rpm/prerm.sh \ --prerm=rpm/prerm.sh \
--description="Tailscale NGINX authentication protocol handler" \ --description="Tailscale NGINX authentication protocol handler" \
--files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md --files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md
done

Loading…
Cancel
Save