ci: fiddled with build platforms
This commit is contained in:
11
.github/workflows/ci-cd.yml
vendored
11
.github/workflows/ci-cd.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user