CI #170
4 changed files with 24 additions and 13 deletions
18
.forgejo/workflows/plex_update.yml
Normal file
18
.forgejo/workflows/plex_update.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name: Plex Update
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
native-test:
|
||||||
|
runs-on: native
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- env:
|
||||||
|
VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
|
||||||
|
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
|
||||||
|
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
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
name: Test
|
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
setup-forgejo:
|
|
||||||
runs-on: nix-native
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
ls
|
|
||||||
echo "Hello, World!"
|
|
|
@ -27,7 +27,9 @@ in {
|
||||||
quoteEnvironmentValues = false; # Needed for docker
|
quoteEnvironmentValues = false; # Needed for docker
|
||||||
};
|
};
|
||||||
|
|
||||||
vault-secrets.secrets.gitea_runner = { };
|
vault-secrets.secrets.gitea_runner = {
|
||||||
|
services = [ "gitea-runner-nix\x2dnative" ];
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -59,7 +61,10 @@ in {
|
||||||
gawk
|
gawk
|
||||||
gitMinimal
|
gitMinimal
|
||||||
gnused
|
gnused
|
||||||
|
jq
|
||||||
nodejs
|
nodejs
|
||||||
|
nixUnstable
|
||||||
|
vault
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
set -x
|
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue