Spaces:
Build error
Build error
Commit
·
c029198
1
Parent(s):
26ea971
Delete .github
Browse files- .github/workflows/build_docker.yml +0 -41
- .github/workflows/ci.yml +0 -47
- .github/workflows/issues_close.yml +0 -22
.github/workflows/build_docker.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
name: build_docker
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches: [main]
|
6 |
-
release:
|
7 |
-
types: [created] # 表示在创建新的 Release 时触发
|
8 |
-
|
9 |
-
jobs:
|
10 |
-
build_docker:
|
11 |
-
name: Build docker
|
12 |
-
runs-on: ubuntu-latest
|
13 |
-
steps:
|
14 |
-
- name: Checkout
|
15 |
-
uses: actions/checkout@v3
|
16 |
-
|
17 |
-
- run: |
|
18 |
-
echo "本次构建的版本为:${GITHUB_REF_NAME} (但是这个变量目前上下文中无法获取到)"
|
19 |
-
echo 本次构建的版本为:${{ github.ref_name }}
|
20 |
-
env
|
21 |
-
|
22 |
-
- name: Set up QEMU
|
23 |
-
uses: docker/setup-qemu-action@v2
|
24 |
-
- name: Set up Docker Buildx
|
25 |
-
uses: docker/setup-buildx-action@v2
|
26 |
-
- name: Login to DockerHub
|
27 |
-
uses: docker/login-action@v2
|
28 |
-
with:
|
29 |
-
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
30 |
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
31 |
-
- name: Build and push
|
32 |
-
id: docker_build
|
33 |
-
uses: docker/build-push-action@v4
|
34 |
-
with:
|
35 |
-
context: .
|
36 |
-
push: true
|
37 |
-
labels: ${{ steps.meta.outputs.labels }}
|
38 |
-
platforms: linux/amd64,linux/arm64
|
39 |
-
tags: |
|
40 |
-
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-web:${{ github.ref_name }}
|
41 |
-
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-web:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/ci.yml
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
name: CI
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches:
|
6 |
-
- main
|
7 |
-
|
8 |
-
pull_request:
|
9 |
-
branches:
|
10 |
-
- main
|
11 |
-
|
12 |
-
jobs:
|
13 |
-
lint:
|
14 |
-
runs-on: ubuntu-latest
|
15 |
-
steps:
|
16 |
-
- uses: actions/checkout@v3
|
17 |
-
- name: Set node
|
18 |
-
uses: actions/setup-node@v3
|
19 |
-
with:
|
20 |
-
node-version: 18.x
|
21 |
-
|
22 |
-
- name: Setup
|
23 |
-
run: npm i -g @antfu/ni
|
24 |
-
|
25 |
-
- name: Install
|
26 |
-
run: nci
|
27 |
-
|
28 |
-
- name: Lint
|
29 |
-
run: nr lint:fix
|
30 |
-
|
31 |
-
typecheck:
|
32 |
-
runs-on: ubuntu-latest
|
33 |
-
steps:
|
34 |
-
- uses: actions/checkout@v3
|
35 |
-
- name: Set node
|
36 |
-
uses: actions/setup-node@v3
|
37 |
-
with:
|
38 |
-
node-version: 18.x
|
39 |
-
|
40 |
-
- name: Setup
|
41 |
-
run: npm i -g @antfu/ni
|
42 |
-
|
43 |
-
- name: Install
|
44 |
-
run: nci
|
45 |
-
|
46 |
-
- name: Typecheck
|
47 |
-
run: nr type-check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/issues_close.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
name: Close inactive issues
|
2 |
-
on:
|
3 |
-
schedule:
|
4 |
-
- cron: '30 1 * * *'
|
5 |
-
|
6 |
-
jobs:
|
7 |
-
close-issues:
|
8 |
-
runs-on: ubuntu-latest
|
9 |
-
permissions:
|
10 |
-
issues: write
|
11 |
-
pull-requests: write
|
12 |
-
steps:
|
13 |
-
- uses: actions/stale@v5
|
14 |
-
with:
|
15 |
-
days-before-issue-stale: 10
|
16 |
-
days-before-issue-close: 2
|
17 |
-
stale-issue-label: stale
|
18 |
-
stale-issue-message: This issue is stale because it has been open for 10 days with no activity.
|
19 |
-
close-issue-message: This issue was closed because it has been inactive for 2 days since being marked as stale.
|
20 |
-
days-before-pr-stale: -1
|
21 |
-
days-before-pr-close: -1
|
22 |
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|