fix: use git clone instead of checkout action (no node required)
Deploy / deploy (push) Failing after 1s
Deploy / deploy (push) Failing after 1s
This commit is contained in:
@@ -10,14 +10,19 @@ jobs:
|
|||||||
runs-on: aliyun
|
runs-on: aliyun
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: http://47.121.181.112:3000/wonder/checkout@v4
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 -b main \
|
||||||
|
https://x-access-token:${GITEA_TOKEN}@47.121.181.112:3000/wonder/illustrated-algorithm.git \
|
||||||
|
/tmp/illustrated-algorithm
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
--cache-from illustrated-algorithm:latest \
|
--cache-from illustrated-algorithm:latest \
|
||||||
-t illustrated-algorithm:latest \
|
-t illustrated-algorithm:latest \
|
||||||
.
|
/tmp/illustrated-algorithm
|
||||||
|
|
||||||
- name: Deploy Container
|
- name: Deploy Container
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user