This commit is contained in:
parent
eb114b1110
commit
5392a98f3c
|
@ -11,8 +11,15 @@ jobs:
|
|||
run: |
|
||||
git config user.name "Forgejo Actions Bot"
|
||||
git config user.email "<>"
|
||||
./nixos/pkgs/plex-pass/update.sh
|
||||
git add ./nixos/pkgs/plex-pass/
|
||||
git commit -m "Update Plex"
|
||||
git push origin actions-ci
|
||||
|
||||
# Run Update script
|
||||
./nixos/pkgs/plex-pass/update.sh
|
||||
|
||||
git add ./nixos/pkgs/plex-pass/
|
||||
|
||||
# Push if changed
|
||||
git status ./nixos/pkgs/plex-pass/ | grep -q modified
|
||||
if [ $? == 0 ]; then
|
||||
git commit -m "Update Plex"
|
||||
git push origin main
|
||||
fi
|
||||
|
|
147
.github/workflows/nixos.yml
vendored
147
.github/workflows/nixos.yml
vendored
|
@ -1,147 +0,0 @@
|
|||
name: NixOS
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
build-aoife:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
# all of these default to true, but feel free to set to
|
||||
# "false" if necessary for your workflow
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
swap-storage: true
|
||||
- name: "Install Nix ❄️"
|
||||
uses: cachix/install-nix-action@v21
|
||||
- name: "Install Cachix ❄️"
|
||||
uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: 0x76-infra
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
extraPullNames: hyprland
|
||||
- name: "Build NixOS config ❄️"
|
||||
run: |
|
||||
nix run '.#' build -- --on "aoife"
|
||||
build-iso:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: "Install Nix ❄️"
|
||||
uses: cachix/install-nix-action@v21
|
||||
|
||||
- name: "Install Cachix ❄️"
|
||||
uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: 0x76-infra
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: "Build NixOS ISO ❄️"
|
||||
run: |
|
||||
nix build '.#iso'
|
||||
build-lxc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: "Install Nix ❄️"
|
||||
uses: cachix/install-nix-action@v21
|
||||
|
||||
- name: "Install Cachix ❄️"
|
||||
uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: 0x76-infra
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: "Build NixOS Proxmox LXC ❄️"
|
||||
run: |
|
||||
nix build '.#proxmox-lxc'
|
||||
build-olympus:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
# all of these default to true, but feel free to set to
|
||||
# "false" if necessary for your workflow
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
swap-storage: true
|
||||
|
||||
- name: "Install Nix ❄️"
|
||||
uses: cachix/install-nix-action@v21
|
||||
- name: "Install Cachix ❄️"
|
||||
uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: 0x76-infra
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
extraPullNames: hyprland
|
||||
|
||||
- name: "Build NixOS config ❄️"
|
||||
run: |
|
||||
nix run '.#' build -- --on "@olympus"
|
||||
build-hades:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Free Disk Space (Ubuntu)
|
||||
uses: jlumbroso/free-disk-space@main
|
||||
with:
|
||||
# this might remove tools that are actually needed,
|
||||
# if set to "true" but frees about 6 GB
|
||||
tool-cache: true
|
||||
# all of these default to true, but feel free to set to
|
||||
# "false" if necessary for your workflow
|
||||
android: true
|
||||
dotnet: true
|
||||
haskell: true
|
||||
large-packages: true
|
||||
swap-storage: true
|
||||
|
||||
- name: "Install Nix ❄️"
|
||||
uses: cachix/install-nix-action@v21
|
||||
|
||||
- name: "Install Cachix ❄️"
|
||||
uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: 0x76-infra
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- name: "Build NixOS config ❄️"
|
||||
run: |
|
||||
nix run '.#' build -- --on "@hades"
|
||||
# disabled because of OOM errors
|
||||
# check:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
|
||||
# - name: "Install Nix ❄️"
|
||||
# uses: cachix/install-nix-action@v18
|
||||
|
||||
# - name: "Install Cachix ❄️"
|
||||
# uses: cachix/cachix-action@v11
|
||||
# with:
|
||||
# name: 0x76-infra
|
||||
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
# - name: "Check NixOS Flake ❄️"
|
||||
# run: |
|
||||
# nix flake check
|
Loading…
Reference in a new issue