Quellcode durchsuchen

chore: add image build script, drop binary artifact, add missing go.sum

Add deploy/build_newapi.sh for tagged Aliyun image builds, remove the
94MB compiled binary new-api.exe~ accidentally committed to the repo,
and add the missing go.sum for third_party/ecloudsdkcore.

Co-Authored-By: ZCode <noreply@anthropic.com>
master
fengsilin vor 1 Woche
Ursprung
Commit
83724d4930
3 geänderte Dateien mit 15 neuen und 0 gelöschten Zeilen
  1. +14
    -0
      deploy/build_newapi.sh
  2. BIN
      new-api.exe~
  3. +1
    -0
      third_party/ecloudsdkcore/go.sum

+ 14
- 0
deploy/build_newapi.sh Datei anzeigen

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
cd /mnt/d/code/new-api
BRANCH=$(git rev-parse --abbrev-ref HEAD | sed 's/\//-/g')
COMMIT=$(git rev-parse --short HEAD)
DIRTY=""
git diff --quiet && git diff --cached --quiet 2>/dev/null || DIRTY="-dirty"
TAG="$(date +%Y%m%d%H%M)-${BRANCH}-${COMMIT}${DIRTY}"
IMAGE="registry.cn-hangzhou.aliyuncs.com/fengsilin/new-api:${TAG}"
echo "Building: $IMAGE"
docker build -t "$IMAGE" . 2>&1 | tail -12
echo "===exit ${PIPESTATUS[0]}==="
echo "IMAGE=$IMAGE"
echo "TAG=$TAG"

BIN
new-api.exe~ Datei anzeigen


+ 1
- 0
third_party/ecloudsdkcore/go.sum Datei anzeigen

@@ -0,0 +1 @@
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

Laden…
Abbrechen
Speichern