Initial commit
This commit is contained in:
commit
430194beda
109 changed files with 9066 additions and 0 deletions
24
.forgejo/workflows/build-hosts.yml
Normal file
24
.forgejo/workflows/build-hosts.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: Build hosts
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-hosts:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Build cryodev-main
|
||||
run: nix build .#nixosConfigurations.cryodev-main.config.system.build.toplevel --impure
|
||||
|
||||
- name: Build cryodev-pi
|
||||
run: nix build .#nixosConfigurations.cryodev-pi.config.system.build.toplevel --impure
|
||||
34
.forgejo/workflows/deploy-main.yml
Normal file
34
.forgejo/workflows/deploy-main.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Deploy cryodev-main
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-cryodev-main:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Set up SSH
|
||||
env:
|
||||
DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
# Add host key (replace with actual host key or use ssh-keyscan in unsafe environments)
|
||||
ssh-keyscan -H cryodev.xyz >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy with deploy-rs
|
||||
run: |
|
||||
# Deploy using deploy-rs
|
||||
nix run github:serokell/deploy-rs -- -s .#cryodev-main
|
||||
18
.forgejo/workflows/flake-check.yml
Normal file
18
.forgejo/workflows/flake-check.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: Flake check
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
flake-check:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Run flake check
|
||||
run: nix flake check --impure
|
||||
Loading…
Add table
Add a link
Reference in a new issue