mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-02 04:33:15 +02:00
37 lines
1022 B
YAML
37 lines
1022 B
YAML
name: "Build topology graph"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
evals:
|
|
runs-on: debian-latest
|
|
steps:
|
|
- name: Install sudo
|
|
run: apt-get install --update --assume-yes sudo
|
|
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: https://github.com/cachix/install-nix-action@v31
|
|
with:
|
|
extra_nix_config: |
|
|
show-trace = true
|
|
max-jobs = auto
|
|
trusted-users = root
|
|
experimental-features = nix-command flakes
|
|
build-users-group =
|
|
|
|
- name: Build topology graph
|
|
run: nix build .#topology -L
|
|
|
|
- name: Upload topology graph
|
|
uses: https://git.pvv.ntnu.no/Projects/rsync-action@v2
|
|
with:
|
|
source: result/*.svg
|
|
quote-source: false
|
|
target: ${{ gitea.ref_name }}/topology_graph/
|
|
username: gitea-web
|
|
ssh-key: ${{ secrets.WEB_SYNC_SSH_KEY }}
|
|
host: pages.pvv.ntnu.no
|
|
known-hosts: "pages.pvv.ntnu.no ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH2QjfFB+city1SYqltkVqWACfo1j37k+oQQfj13mtgg"
|