ci(push): test ssh key in secrets
Some checks failed
push / build (push) Failing after 8s

This commit is contained in:
张泊明518370910136 2024-10-19 06:45:42 -04:00
parent 98f1341ba1
commit 67149c1283
GPG Key ID: CA088E6D9284F870

View File

@ -8,8 +8,6 @@ jobs:
build: build:
container: container:
image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:golang-ubuntu-latest image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:golang-ubuntu-latest
volumes:
- /home/actions/.ssh:/root/.ssh
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: https://gitea.com/BoYanZh/checkout@focs uses: https://gitea.com/BoYanZh/checkout@focs
@ -19,7 +17,10 @@ jobs:
run: | run: |
go env -w GO111MODULE=on go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct go env -w GOPROXY=https://goproxy.io,direct
chown -R root:root /root/.ssh mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
shell: bash
- name: Determine build command - name: Determine build command
id: build_command id: build_command
run: | run: |