ci: use auto-checkout, remove manual clone
CI/CD Pipeline / build-and-deploy (push) Failing after 0s
CI/CD Pipeline / build-and-deploy (push) Failing after 0s
This commit is contained in:
@@ -8,11 +8,6 @@ jobs:
|
|||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Clone code
|
|
||||||
run: |
|
|
||||||
git clone https://git.plfai.cn/test/fastapi-demo.git .
|
|
||||||
git checkout ${GITHUB_SHA}
|
|
||||||
|
|
||||||
- name: Docker Build
|
- name: Docker Build
|
||||||
run: |
|
run: |
|
||||||
docker build --network host \
|
docker build --network host \
|
||||||
|
|||||||
Reference in New Issue
Block a user