Skip to content

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

chore: build chatgpt

d-bytebase427d8e255932
diff --git a/.github/workflows/build-chatgpt.yml b/.github/workflows/build-chatgpt.yml
new file mode 100644
index 0000000000..4ccf85079d
--- /dev/null
+++ b/.github/workflows/build-chatgpt.yml
@@ -0,0 +1,37 @@
+name: Build and push CI image
+
+on:
+ # push:
+ # branches:
+ # - main
+ workflow_dispatch:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
+jobs:
+ docker:
+ runs-on: self-hosted
+ steps:
+ - uses: actions/checkout@v4
+ - name: Login to DockerHub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DDOCKERHUB_USERNAME }}
+ password: ${{ secrets.DDOCKERHUB_TOKEN }}
+ - uses: depot/setup-action@v1
+ - name: Build and push
+ id: docker_build
+ uses: depot/build-push-action@v1
+ with:
+ context: .
+ project: ${{ secrets.DEPOT_PROJECT}}
+ token: ${{ secrets.DEPOT_TOKEN }}
+ file: scripts/Dockerfile.render-demo
+ platforms: linux/amd64
+ push: true
+ tags: dbytebase/chatgpt:release-ci
+ - name: Image digest
+ run: echo "Successfully pushed bytebase/bytebase:release-ci " ${{ steps.docker_build.outputs.digest }}