ci: replace actions/checkout with git clone (no Node.js in runner)

This commit is contained in:
2026-07-19 18:56:02 +08:00
parent 58e9e4db22
commit 5418f23111
+9 -5
View File
@@ -14,18 +14,22 @@ on:
env: env:
REGISTRY: 192.168.123.199:5000 REGISTRY: 192.168.123.199:5000
APP: lpt-be APP: lpt-be
REPO_URL: http://git.cat-shark.xyz/cat-shark/lpt-be.git
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
run: |
git clone $REPO_URL .
git checkout ${{ github.sha }}
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v4 run: |
with: apt-get update -qq
java-version: '17' apt-get install -y -qq openjdk-17-jdk
distribution: 'temurin' java -version
- name: Build with Maven - name: Build with Maven
run: ./mvnw package -DskipTests -B run: ./mvnw package -DskipTests -B