feat: 适配cug成绩 #82
This file contains hidden or 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: [ "cug" ] | |
| pull_request: | |
| branches: [ "cug" ] | |
| 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 -DskipTests=true -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/cug-backend:latest . | |
| docker push registry.cn-hangzhou.aliyuncs.com/handiswust/cug-backend:latest |