Skip to content

Commit

Permalink
Continuous Deployment of NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Nov 18, 2024
1 parent ed4b8cd commit dffb60a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,24 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build NixOS machines
run: |
nix build .#nixosConfigurations.servers-us-east-1.config.formats.linode
- name: Run Flake Checks
run: nix flake check

deploy:
name: Deploy NixOS Config
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: nexus-ci
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix run .#deploy-rs -- .


0 comments on commit dffb60a

Please sign in to comment.