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:
image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Clone repository
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 deploy
- name: Notify

View File

@ -7,12 +7,12 @@ jobs:
steps:
- name: Set up SSH
run: |
if (-Not (Test-Path -Path $HOME\.ssh)) {
mkdir $HOME\.ssh
if (-Not (Test-Path -Path C:\Windows\system32\config\systemprofile\.ssh)) {
mkdir C:\Windows\system32\config\systemprofile\.ssh
}
echo $env:SSH_PRIVATE_KEY | Out-File -FilePath $HOME\.ssh\id_ed25519 -Encoding ascii
icacls $HOME\.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
echo $env:SSH_PRIVATE_KEY | Out-File -FilePath C:\Windows\system32\config\systemprofile\.ssh\id_ed25519 -Encoding ascii
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 C:\Windows\system32\config\systemprofile\.ssh\known_hosts -Encoding ascii
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repository