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

This commit is contained in:
amass 2024-10-16 00:16:50 +08:00
parent dd25ec9aa4
commit 9fb565d310
2 changed files with 8 additions and 6 deletions

View File

@ -5,18 +5,18 @@ jobs:
PullDocker: PullDocker:
runs-on: [ubuntu-latest, ubuntu-24.04] runs-on: [ubuntu-latest, ubuntu-24.04]
steps: steps:
- name: Login to Docker Registry - name: Login to ACR
uses: docker/login-action@v2 uses: aliyun/acr-login@v1
with: with:
registry: frp-by1.wwvvww.cn:45288 login-server: https://registry.cn-shenzhen.aliyuncs.com
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Pull Docker image - name: Pull Docker image
run: docker pull frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 run: docker pull registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
Build: Build:
runs-on: [ubuntu-latest, ubuntu-24.04] runs-on: [ubuntu-latest, ubuntu-24.04]
container: container:
image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04 image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -7,7 +7,9 @@ jobs:
steps: steps:
- name: Set up SSH - name: Set up SSH
run: | run: |
mkdir $HOME\.ssh if (-Not (Test-Path -Path $HOME\.ssh)) {
mkdir $HOME\.ssh
}
echo $env:SSH_PRIVATE_KEY | Out-File -FilePath $HOME\.ssh\id_ed25519 -Encoding ascii 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)" 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 ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn | Out-File -FilePath $HOME\.ssh\known_hosts -Encoding ascii