diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index d74be04..eb2f122 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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: |