ci: replace actions/checkout with git clone (no Node.js in runner)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user