Add SSH key from secrets to access repositories
Some checks failed
CI / build:local (pull_request) Failing after 1s
CI / build:rt (pull_request) Failing after 1s
CI / build:debug (pull_request) Successful in 12s
CI / build:asan (pull_request) Failing after 12s
CI / build:nompi (pull_request) Successful in 27s
CI / build:compilers (pull_request) Has been cancelled
Some checks failed
CI / build:local (pull_request) Failing after 1s
CI / build:rt (pull_request) Failing after 1s
CI / build:debug (pull_request) Successful in 12s
CI / build:asan (pull_request) Failing after 12s
CI / build:nompi (pull_request) Successful in 27s
CI / build:compilers (pull_request) Has been cancelled
This commit is contained in:
parent
34d99b8be2
commit
19755c0b99
@ -8,15 +8,44 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:local:
|
build:local:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
|
- name: Configure SSH
|
||||||
|
run: |
|
||||||
|
getent passwd `id -u`
|
||||||
|
echo "HOME=$HOME"
|
||||||
|
export "HOME=/var/lib/gitea-runner/"
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
cut -c 75- ~/.ssh/id_ed25519
|
||||||
|
wc -l ~/.ssh/id_ed25519
|
||||||
|
md5sum ~/.ssh/id_ed25519
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
- name: Test SSH
|
||||||
|
run: ssh -v git@gitlab-internal.bsc.es
|
||||||
- uses: https://gitea.com/ScMi1/checkout@v1.4
|
- uses: https://gitea.com/ScMi1/checkout@v1.4
|
||||||
- run: nix build -L --no-link .#ovniPackages.local
|
- run: nix build -L --no-link .#ovniPackages.local
|
||||||
|
|
||||||
build:rt:
|
build:rt:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
|
- name: Configure SSH
|
||||||
|
run: |
|
||||||
|
echo "HOME=$HOME"
|
||||||
|
export "HOME=/var/lib/gitea-runner/"
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
wc -l ~/.ssh/id_ed25519
|
||||||
|
md5sum ~/.ssh/id_ed25519
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||||
|
- name: Test SSH
|
||||||
|
run: ssh -v git@gitlab-internal.bsc.es
|
||||||
- uses: https://gitea.com/ScMi1/checkout@v1.4
|
- uses: https://gitea.com/ScMi1/checkout@v1.4
|
||||||
- run: nix build -L --no-link .#ovniPackages.rt
|
- run: nix build -L --no-link .#ovniPackages.rt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user