ci: replace actions/checkout with git clone (no Node.js in runner)
This commit is contained in:
@@ -14,12 +14,16 @@ on:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: 192.168.123.199:5000
|
REGISTRY: 192.168.123.199:5000
|
||||||
APP: lpt-ai
|
APP: lpt-ai
|
||||||
|
REPO_URL: http://git.cat-shark.xyz/cat-shark/lpt-ai.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: Build & Push Docker image
|
- name: Build & Push Docker image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user