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
|
||||
steps:
|
||||
- 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
|
||||
run: |
|
||||
docker build \
|
||||
--cache-from illustrated-algorithm:latest \
|
||||
-t illustrated-algorithm:latest \
|
||||
.
|
||||
/tmp/illustrated-algorithm
|
||||
|
||||
- name: Deploy Container
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user