Compare commits

..

No commits in common. "befdfdad36b7c91c572114d209eeaee3858f4fdd" and "479f9539440e85a54150855c8b8540e3aea1a2db" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -29,20 +29,16 @@ jobs:
extraPullNames: nix-community
- name: Set up deploy-rs
run: nix build -o deploy github:serokell/deploy-rs#defaultPackage.x86_64-linux
- name: Set up SSH key
- name: Set up SSH
run: |
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
chmod 600 /tmp/key
- name: Derive host IPs
run: |
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
- name: Add host keys to known_hosts
run: |
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
for host in $(cat /tmp/hostlist); do
ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
done
- name: Deploy
- name: Dry-run deploy
run: |
./deploy/bin/deploy --ssh-opts '-i /tmp/key'

View File

@ -33,7 +33,7 @@
clusterInit = (hostConf.name == "bard");
serverAddr = (if hostConf.name == "bard" then "" else "https://192.168.1.31:6443");
# We are going to manage k8s resources separately from the infrastructure config
manifests = { };
manifests = { };
};
services.openiscsi = {
enable = false;