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:
REGISTRY: 192.168.123.199:5000
APP: lpt-be
REPO_URL: http://git.cat-shark.xyz/cat-shark/lpt-be.git
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
run: |
git clone $REPO_URL .
git checkout ${{ github.sha }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
run: |
apt-get update -qq
apt-get install -y -qq openjdk-17-jdk
java -version
- name: Build with Maven
run: ./mvnw package -DskipTests -B