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

Commit

Permalink
feat: build test version
Browse files Browse the repository at this point in the history
  • Loading branch information
catlair committed Jun 19, 2021
1 parent 9e8de87 commit ecaa937
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: build docker
on:
workflow_dispatch: # 手动触发
inputs:
docker_test:
description: '测试版本'
required: true
default: 'test'
release:
types: [published]
jobs:
Expand All @@ -15,7 +20,6 @@ jobs:
- name: set Docker tag
run: echo MY_TAGS=${{ github.ref }} | sed -e "s/refs\/tags\/v//g" >> $GITHUB_ENV

# 用上面的不用这
- name: Preparation
run: |
echo '"${{ env.MY_TAGS }}"' > src/config/level.json
Expand All @@ -32,8 +36,19 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
- name: Build and push for Test
id: docker_build_test
if: ${{ github.event.inputs.docker_test }}
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: ${{ secrets.DOCKER_PLATFORMS || 'linux/amd64,linux/arm64' }}
tags: catlair/bilitaskpuppeteer:${{ github.event.inputs.docker_test }}

- name: Build and push for Production
id: docker_build
if: ${{ !github.event.inputs.docker_test }}
uses: docker/build-push-action@v2
with:
context: .
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/gh-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: set Docker tag
run: echo MY_TAGS=${{ github.ref }} | sed -e "s/refs\/tags\/v//g" >> $GITHUB_ENV
# 用上面的不用这
- name: Preparation
run: |
echo '"${{ env.MY_TAGS }}"' > src/config/level.json
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
- 重命名一些 `config.json` 配置项
- `config.json` 增加 `cookie``targetLevel` 配置项
- 检测当前等级是否达到目标等级,从而确定是否取消投币
- 缩短错误时输出内容长度

## Fixes

- 用户信息显示错误
- 去除单独的硬币数获取

0 comments on commit ecaa937

Please sign in to comment.