Compare commits

...

2 commits

Author SHA1 Message Date
Jermeiah S
5361174df6
improved cicd in prep for auto rollout
All checks were successful
/ check (push) Successful in 43s
/ deploy (push) Has been skipped
2025-06-20 14:07:47 -04:00
Jermeiah S
301216649f
improved devshell 2025-06-20 14:07:30 -04:00
2 changed files with 19 additions and 4 deletions

View file

@ -1,10 +1,23 @@
on: [push]
jobs:
test:
check:
runs-on: nix
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check .
# - run: echo hi
- run: nix develop
deploy:
runs-on: nix
needs: check
if: contains(github.event.head_commit.message, 'deploy:')
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- name: Setup SSH key
run: |
mkdir -p ~/.ssh
echo "$SSHKEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
env:
SSHKEY: ${{ secrets.SSHKEY }}
- run: deploy

View file

@ -6,6 +6,8 @@
name = "nixos-unified-template-shell";
meta.description = "Shell environment for modifying this Nix configuration";
packages = with pkgs; [
openssh
deploy-rs
ssh-to-age
sops
just