fix ci.
Some checks failed
Build Applications / PullDocker (push) Successful in 4s
Windows CI / build (push) Failing after 4s
Build Applications / Build (push) Failing after 7s

This commit is contained in:
amass 2024-10-16 00:28:44 +08:00
parent 9fb565d310
commit fd97a1f727
2 changed files with 10 additions and 7 deletions

View File

@ -18,8 +18,11 @@ jobs:
container: container:
image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04 image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
steps: steps:
- name: Check out repository code - name: Clone repository
uses: actions/checkout@v4 run: |
echo "git clone --depth 1 --branch=${GITHUB_REF##*/} ssh://git@frp-by1.wwvvww.cn:22022/${{ gitea.repository }}.git"
git clone --depth 1 --branch=${GITHUB_REF##*/} ssh://git@frp-by1.wwvvww.cn:22022/${{ gitea.repository }}.git .
git checkout ${GITHUB_SHA}
- run: resources/build.sh build - run: resources/build.sh build
- run: resources/build.sh deploy - run: resources/build.sh deploy
- name: Notify - name: Notify

View File

@ -7,12 +7,12 @@ jobs:
steps: steps:
- name: Set up SSH - name: Set up SSH
run: | run: |
if (-Not (Test-Path -Path $HOME\.ssh)) { if (-Not (Test-Path -Path C:\Windows\system32\config\systemprofile\.ssh)) {
mkdir $HOME\.ssh mkdir C:\Windows\system32\config\systemprofile\.ssh
} }
echo $env:SSH_PRIVATE_KEY | Out-File -FilePath $HOME\.ssh\id_ed25519 -Encoding ascii echo $env:SSH_PRIVATE_KEY | Out-File -FilePath C:\Windows\system32\config\systemprofile\.ssh\id_ed25519 -Encoding ascii
icacls $HOME\.ssh\id_ed25519 /inheritance:r /grant:r "$($env:USERNAME):(F)" icacls C:\Windows\system32\config\systemprofile\.ssh\id_ed25519 /inheritance:r /grant:r "$($env:USERNAME):(F)"
ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn | Out-File -FilePath $HOME\.ssh\known_hosts -Encoding ascii ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn | Out-File -FilePath C:\Windows\system32\config\systemprofile\.ssh\known_hosts -Encoding ascii
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repository - name: Clone repository