Compare commits
2 Commits
b91d41cb90
...
440d08c925
Author | SHA1 | Date | |
---|---|---|---|
|
440d08c925 | ||
|
a4308d08dd |
@ -21,13 +21,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_access_token: ${{ secrets.RUNNER_GITHUB_TOKEN }}
|
github_access_token: ${{ secrets.RUNNER_GITHUB_TOKEN }}
|
||||||
nix_path: nixpkgs=channel:nixos-24.05
|
nix_path: nixpkgs=channel:nixos-24.05
|
||||||
- name: Configure Cachix
|
- name: Set up Cachix
|
||||||
uses: cachix/cachix-action@v15
|
uses: cachix/cachix-action@v15
|
||||||
with:
|
with:
|
||||||
name: jafnernet
|
name: jafnernet
|
||||||
authToken: '${{ secrets.CACHIX_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_TOKEN }}'
|
||||||
extraPullNames: nix-community
|
extraPullNames: nix-community
|
||||||
- name: Configure SSH
|
- name: Set up deploy-rs
|
||||||
|
run: nix build -o deploy github:serokell/deploy-rs#defaultPackage.x86_64-linux
|
||||||
|
- name: Set up SSH
|
||||||
run: |
|
run: |
|
||||||
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
||||||
chmod 600 /tmp/key
|
chmod 600 /tmp/key
|
||||||
@ -37,11 +39,6 @@ jobs:
|
|||||||
for host in $(cat /tmp/hostlist); do
|
for host in $(cat /tmp/hostlist); do
|
||||||
ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
|
ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts
|
||||||
done
|
done
|
||||||
# - name: Test SSH connections
|
|
||||||
# run: |
|
|
||||||
# for host in $(cat /tmp/hostlist); do
|
|
||||||
# ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME'
|
|
||||||
# done
|
|
||||||
- name: Run deploy-rs from flake
|
- name: Run deploy-rs from flake
|
||||||
run: |
|
run: |
|
||||||
nix run github:serokell/deploy-rs#defaultPackage.x86_64-linux -- --ssh-opts '-i /tmp/key' --dry-activate
|
./deploy --ssh-opts '-i /tmp/key' --dry-activate
|
@ -33,7 +33,7 @@
|
|||||||
clusterInit = (hostConf.name == "bard");
|
clusterInit = (hostConf.name == "bard");
|
||||||
serverAddr = (if hostConf.name == "bard" then "" else "https://192.168.1.31:6443");
|
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
|
# We are going to manage k8s resources separately from the infrastructure config
|
||||||
manifests = { };
|
manifests = { };
|
||||||
};
|
};
|
||||||
services.openiscsi = {
|
services.openiscsi = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user