1 Commits

Author SHA1 Message Date
kone 8f1881ae9a fix(ci): extract binary from Docker image instead of building with Go 2026-06-09 15:25:34 +08:00
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -84,11 +84,10 @@ jobs:
- name: Build binary
run: |
set -eu
cd backend
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-ldflags "-s -w -X main.Version=${VERSION} -X main.Commit=${COMMIT} -X main.BuildDate=${BUILD_DATE}" \
-o /tmp/sub2api \
./cmd/server
# Extract binary from the already-built image (no Go toolchain needed)
docker create --name extract_tmp "$IMAGE_NAME:$VERSION"
docker cp extract_tmp:/app/sub2api /tmp/sub2api
docker rm extract_tmp
cd /tmp
tar -czf "sub2api_linux_amd64.tar.gz" sub2api
sha256sum "sub2api_linux_amd64.tar.gz" > checksums.txt
+1 -1
View File
@@ -1 +1 @@
0.1.147
0.1.140