fix ci.
This commit is contained in:
parent
dd25ec9aa4
commit
9fb565d310
@ -5,18 +5,18 @@ jobs:
|
||||
PullDocker:
|
||||
runs-on: [ubuntu-latest, ubuntu-24.04]
|
||||
steps:
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v2
|
||||
- name: Login to ACR
|
||||
uses: aliyun/acr-login@v1
|
||||
with:
|
||||
registry: frp-by1.wwvvww.cn:45288
|
||||
login-server: https://registry.cn-shenzhen.aliyuncs.com
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- 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:
|
||||
runs-on: [ubuntu-latest, ubuntu-24.04]
|
||||
container:
|
||||
image: frp-by1.wwvvww.cn:45288/ubuntu_dev:24.04
|
||||
image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:24.04
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
@ -7,7 +7,9 @@ jobs:
|
||||
steps:
|
||||
- name: Set up SSH
|
||||
run: |
|
||||
if (-Not (Test-Path -Path $HOME\.ssh)) {
|
||||
mkdir $HOME\.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
|
||||
|
Loading…
Reference in New Issue
Block a user