fix ci.
Some checks failed
Deploy / PullDocker (push) Successful in 3s
Deploy / Build (push) Failing after 15s

This commit is contained in:
amass 2024-10-15 23:52:15 +08:00
parent 298a30b06b
commit 8938c63bc6

View File

@ -16,10 +16,19 @@ jobs:
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:22.04 image: registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:22.04
steps: steps:
- name: Check out source. - name: Set up SSH
uses: actions/checkout@v4 run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn >> ~/.ssh/known_hosts
- 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}
- name: Notify-Start - name: Notify-Start
if: ${{ always() }} if: ${{ always() }}
run: | run: |