2024-08-07 08:57:49 +00:00
|
|
|
name: Build_Deploy
|
|
|
|
|
2024-08-07 08:46:54 +00:00
|
|
|
on:
|
2024-08-07 08:57:49 +00:00
|
|
|
workflow_run:
|
|
|
|
workflows: ["Update_Flake"]
|
|
|
|
types:
|
|
|
|
- completed
|
2024-08-07 08:46:54 +00:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- applications/**/*
|
|
|
|
- machines/**/*
|
|
|
|
- secrets/**/*
|
|
|
|
- flake.*
|
|
|
|
- config/**/*
|
2024-08-07 08:40:33 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-08-07 09:41:49 +00:00
|
|
|
linter:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: nix fmt -- --check .
|
|
|
|
|
2024-08-07 08:47:22 +00:00
|
|
|
#if: github.repository == 'Skynet/nixos'
|
2024-08-07 08:40:33 +00:00
|
|
|
build:
|
|
|
|
runs-on: nix
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: nix develop
|
|
|
|
- run: colmena build -v --on @active-dns
|
|
|
|
- run: colmena build -v --on @active-core
|
|
|
|
- run: colmena build -v --on @active
|
|
|
|
- run: colmena build -v --on @active-ext
|
2024-08-07 09:41:49 +00:00
|
|
|
- run: colmena build -v --on @active-gitlab
|
|
|
|
|
|
|
|
deploy_dns:
|
|
|
|
runs-on: nix
|
|
|
|
needs: [linter, build]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: nix fmt -- --check .
|