From f18973bad5c6371c16613bb8d349155b141c14d6 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 31 Aug 2023 00:01:48 +0800 Subject: [PATCH] chore: remove unused files --- server/.github/workflows/ci.yaml | 56 --------------------- server/.github/workflows/docker-publish.yml | 46 ----------------- 2 files changed, 102 deletions(-) delete mode 100644 server/.github/workflows/ci.yaml delete mode 100644 server/.github/workflows/docker-publish.yml diff --git a/server/.github/workflows/ci.yaml b/server/.github/workflows/ci.yaml deleted file mode 100644 index ca2eeb3c..00000000 --- a/server/.github/workflows/ci.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: "CI" - -on: - # 单元测试还有点问题。先注释 - # push: - # branches: - # - master - workflow_dispatch: - -jobs: - ci: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - services: - redis: - image: redis:alpine - mongo: - image: mongo:4 - minio: - image: minio/minio - env: - MINIO_ROOT_USER: tailchat - MINIO_ROOT_PASSWORD: com.msgbyte.tailchat - steps: - - name: checkout - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - name: Cache pnpm modules - uses: actions/cache@v2 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}- - - uses: pnpm/action-setup@v2.0.1 - with: - version: latest-7 - run_install: false - - name: Install packages - run: pnpm install --frozen-lockfile - - name: Test - run: pnpm test - env: - TZ: Asia/Shanghai - MONGO_URL: mongodb://localhost:27017/tailchat - REDIS_URL: redis://localhost:6379 - MINIO_URL: localhost:9000 - MINIO_USER: tailchat - MINIO_PASS: com.msgbyte.tailchat - - name: Check Build - run: pnpm build diff --git a/server/.github/workflows/docker-publish.yml b/server/.github/workflows/docker-publish.yml deleted file mode 100644 index 36b303d5..00000000 --- a/server/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Reference: https://github.com/docker/build-push-action/blob/master/docs/advanced/tags-labels.md - -name: "Docker Publish" - -on: - push: - tags: - - "v*.*.*" - workflow_dispatch: - -jobs: - dockerize: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Docker meta - id: meta - uses: docker/metadata-action@v3 - with: - images: moonrailgun/tailchat-server - # generate Docker tags based on the following events/attributes - tags: | - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - type=sha - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }}