Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update

d-bytebase159cb8b1d9e8
diff --git a/.github/workflows/build-push-ci-image.yml b/.github/workflows/build-push-ci-image.yml
index 263df3143e..d7838bc00d 100644
--- a/.github/workflows/build-push-ci-image.yml
+++ b/.github/workflows/build-push-ci-image.yml
@@ -1,10 +1,9 @@
name: Build and push CI image
on:
- push:
- branches:
- - main
-
+ # push:
+ # branches:
+ # - main
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
@@ -39,7 +38,6 @@ jobs:
working-directory: frontend
- name: Run pnpm release build
run: |
- rm -rf ./backend/server/dist
cp backend/plugin/advisor/config/* frontend/src/types
cp backend/enterprise/api/plan.yaml frontend/src/types
pnpm --dir ./frontend i && pnpm --dir ./frontend release
diff --git a/.github/workflows/build-push-release-image.yml b/.github/workflows/build-push-release-image.yml
index 7be2270aec..40ac91d0cf 100644
--- a/.github/workflows/build-push-release-image.yml
+++ b/.github/workflows/build-push-release-image.yml
@@ -19,6 +19,16 @@ jobs:
echo "GIT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV
echo "BUILD_USER=$(id -u -n)" >> $GITHUB_ENV
+ - uses: pnpm/[email protected]
+ with:
+ version: 8.6.0
+ - uses: actions/setup-node@v3
+ with:
+ node-version: "18"
+ cache: pnpm
+ cache-dependency-path: "frontend/pnpm-lock.yaml"
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
@@ -26,11 +36,20 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - run: pnpm install --frozen-lockfile
+ working-directory: frontend
+ - name: Run pnpm release build
+ run: |
+ cp backend/plugin/advisor/config/* frontend/src/types
+ cp backend/enterprise/api/plan.yaml frontend/src/types
+ pnpm --dir ./frontend i && pnpm --dir ./frontend release
- name: Build and push
id: bytebase_build
uses: docker/build-push-action@v4
with:
+ context: .
file: scripts/Dockerfile
+ platforms: linux/amd64,linux/arm64
push: true
tags: bytebase/bytebase:${{ env.RELEASE_VERSION }}
build-args: |