proper setup
This commit is contained in:
parent
4decf1a76b
commit
49fa344bb1
1 changed files with 14 additions and 3 deletions
|
@ -4,19 +4,30 @@ jobs:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
|
||||||
|
- name: prepare ssh
|
||||||
|
run: |
|
||||||
cat <<EOF > .id_rsa
|
cat <<EOF > .id_rsa
|
||||||
${{ secrets.SSH_KEY }}
|
${{ secrets.SSH_KEY }}
|
||||||
EOF
|
EOF
|
||||||
chmod 600 .id_rsa
|
chmod 600 .id_rsa
|
||||||
|
|
||||||
eval $(ssh-agent)
|
eval $(ssh-agent)
|
||||||
ssh-add .id_rsa
|
ssh-add .id_rsa
|
||||||
NIX_SSHOPTS="-i $PWD/id_rsa" nix flake update
|
|
||||||
|
cat <<EOF > "$GITHUB_ENV"
|
||||||
|
SSH_AUTH_SOCK="$SSH_AUTH_SOCK"
|
||||||
|
SSH_AGENT_PID=$SSH_AGENT_PID
|
||||||
|
EOF
|
||||||
|
|
||||||
|
- run: nix flake update
|
||||||
- run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
|
- run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
|
||||||
- run: nix build .#nixosConfigurations.cream.config.system.build.toplevel
|
- run: nix build .#nixosConfigurations.cream.config.system.build.toplevel
|
||||||
- run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
|
- run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
|
||||||
- run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
|
- run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
|
||||||
- if: always()
|
|
||||||
|
- name: destroy ssh
|
||||||
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo $SSH_AGENT_PID
|
echo $SSH_AGENT_PID
|
||||||
kill $SSH_AGENT_PID
|
kill $SSH_AGENT_PID
|
||||||
|
|
Loading…
Reference in a new issue