Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
调整优化
Browse files Browse the repository at this point in the history
  • Loading branch information
catlair committed May 1, 2021
1 parent ca5185c commit 5ede204
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ jobs:
runs-on: ubuntu-latest
environment: Build
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Preparation
run: |
echo '!node_modules' >> .dockerignore
echo '!dist' >> .dockerignore
sed -i '14,18d' Dockerfile
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x

- name: install and build
run: |
npm install
npm run build
npm prune --production
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

Expand Down
5 changes: 0 additions & 5 deletions src/config/log4js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ const loggerLevel = levels.includes(loggerLevelENV) ? loggerLevelENV : 'INFO';
const options = {
appenders: {
console: {
type: 'logLevelFilter',
level: loggerLevel,
appender: 'consoleCurrent',
},
consoleCurrent: {
type: 'console',
},
everything: {
Expand Down
1 change: 1 addition & 0 deletions tools/random_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function random()
echo $retnum;
}
# 旧的不去新的不来
docker pull catlair/bilitaskpuppeteer:latest
docker-compose -f docker/docker-compose.yml down
# 等待时间为执行开始后2 - 7200s中随机时间
out=$(random 2 7200)s;
Expand Down

0 comments on commit 5ede204

Please sign in to comment.