perf: 课程请求做了一下并行优化,效果还有待观察。顺便把日志全部换成logback了 #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Alibaba Cloud Container Registry (ACR) Login | |
uses: aliyun/acr-login@v1 | |
with: | |
username: "${{secrets.ALI_ACR_USERNAME}}" | |
password: "${{secrets.ALI_ACR_PASSWD}}" | |
region-id: "cn-hangzhou" | |
login-server: "registry.cn-hangzhou.aliyuncs.com" | |
- name: Build and Push Docker Image | |
run: | | |
docker build --tag registry.cn-hangzhou.aliyuncs.com/handiswust/backend:latest . | |
docker push registry.cn-hangzhou.aliyuncs.com/handiswust/backend:latest |