mirror of https://github.com/msgbyte/tailchat
chore: remove unused files
parent
4d6c70c3cf
commit
f18973bad5
@ -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
|
||||
@ -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 }}
|
||||
Loading…
Reference in New Issue