fix ci.
This commit is contained in:
parent
dd25ec9aa4
commit
9fb565d310
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user