mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-07 07:01:15 +02:00
30 lines
814 B
YAML
30 lines
814 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
|
|
|
|
- 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"
|