gitea fixes
This commit is contained in:
@@ -13,8 +13,17 @@ jobs:
|
||||
VPS_HOST: ${{ secrets.DEPLOY_VPS_HOST }}
|
||||
VPS_USER: ${{ secrets.DEPLOY_VPS_USER }}
|
||||
steps:
|
||||
# Manual checkout: job container cannot resolve 'server', so clone via host IP (gateway).
|
||||
# Set secret GITEA_HOST_IP to your runner host's gateway (from job: ip route show default | awk '{print $3}').
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
GITEA_HOST="${GITEA_HOST_IP:-172.20.0.1}"
|
||||
git clone --depth 1 "http://oauth2:${GITHUB_TOKEN}@${GITEA_HOST}:3000/admin/honey-be.git" .
|
||||
git fetch --depth 1 origin "${{ github.sha }}"
|
||||
git checkout -q "${{ github.sha }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
GITEA_HOST_IP: ${{ secrets.GITEA_HOST_IP }}
|
||||
|
||||
- name: Install SSH and Rsync
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user