Compare commits
2 commits
a784b12962
...
5361174df6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5361174df6 | ||
|
|
301216649f |
2 changed files with 19 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue