feat: remove sample data and support cicd

This commit is contained in:
Ivan087
2025-09-18 10:55:27 +08:00
parent ced10e4447
commit 913fc07bc8
37 changed files with 105 additions and 50575 deletions

35
.github/workflows/ci-cd.yaml vendored Normal file
View File

@ -0,0 +1,35 @@
name: CI/CD Pipeline
on:
push:
branches: [ docker ]
# pull_request:
# branches: [ main ]
env:
VERSION: 0.0.1
REGISTRY: https://harbor.bwgdi.com
REGISTRY_NAME: harbor.bwgdi.com
IMAGE_NAME: jarvis-models
jobs:
build-docker:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.BWGDI_NAME }}
password: ${{ secrets.BWGDI_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.REGISTRY_NAME }}/library/${{env.IMAGE_NAME}}:${{ env.VERSION }}