ci: fiddled with build platforms

This commit is contained in:
db123-test
2026-05-04 10:36:11 +03:30
parent effa25a8bf
commit b61e496553

View File

@@ -37,16 +37,15 @@ jobs:
run: git clone "${{ secrets.G_CLONE_URL }}" .
- name: Build for Linux amd64
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 /usr/local/go/bin/go build -o auth-gate-linux-amd64 .
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 /usr/local/go/bin/go build -o auth-proxy-linux-amd64 .
- name: Build for Windows amd64
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 /usr/local/go/bin/go build -o auth-gate-windows-amd64.exe
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 /usr/local/go/bin/go build -o auth-proxy-windows-amd64.exe
- name: Package binaries
run: |
tar czf auth-gate-linux-amd64.tar.gz auth-gate-linux-amd64
tar czf auth-gate-linux-arm64.tar.gz auth-gate-linux-arm64
tar czf auth-gate-windows-amd64.tar.gz auth-gate-windows-amd64.exe
tar czf auth-proxy-linux-amd64.tar.gz auth-proxy-linux-amd64
tar czf auth-proxy-windows-amd64.tar.gz auth-proxy-windows-amd64.exe
docker:
name: Build & push Docker image
@@ -66,7 +65,7 @@ jobs:
- name: Build & push
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--tag "git.yejayekhoob.com/db123/auth-gate:${{ github.sha }}" \
--tag "git.yejayekhoob.com/db123/auth-gate:latest" \
--push \