From eb114b11108a288205cb4cc035101427082bda4e Mon Sep 17 00:00:00 2001 From: v Date: Fri, 26 May 2023 22:19:20 +0200 Subject: [PATCH] CI (#170) Co-authored-by: Victor Co-authored-by: Forgejo Actions Bot <> Reviewed-on: https://git.0x76.dev/v/infrastructure/pulls/170 --- .forgejo/workflows/plex_update.yml | 18 ++++++++++++++++++ .forgejo/workflows/test.yml | 10 ---------- .../hosts/olympus/woodpecker/configuration.nix | 7 ++++++- nixos/pkgs/plex-pass/update.sh | 2 -- 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .forgejo/workflows/plex_update.yml delete mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/plex_update.yml b/.forgejo/workflows/plex_update.yml new file mode 100644 index 0000000..a9ed633 --- /dev/null +++ b/.forgejo/workflows/plex_update.yml @@ -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 + diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml deleted file mode 100644 index 90f69a3..0000000 --- a/.forgejo/workflows/test.yml +++ /dev/null @@ -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!" diff --git a/nixos/hosts/olympus/woodpecker/configuration.nix b/nixos/hosts/olympus/woodpecker/configuration.nix index 078b333..9c5d0c2 100644 --- a/nixos/hosts/olympus/woodpecker/configuration.nix +++ b/nixos/hosts/olympus/woodpecker/configuration.nix @@ -27,7 +27,9 @@ in { quoteEnvironmentValues = false; # Needed for docker }; - vault-secrets.secrets.gitea_runner = { }; + vault-secrets.secrets.gitea_runner = { + services = [ "gitea-runner-nix\x2dnative" ]; + }; virtualisation.podman = { enable = true; @@ -59,7 +61,10 @@ in { gawk gitMinimal gnused + jq nodejs + nixUnstable + vault wget ]; }; diff --git a/nixos/pkgs/plex-pass/update.sh b/nixos/pkgs/plex-pass/update.sh index 4dc8e12..90c07c3 100755 --- a/nixos/pkgs/plex-pass/update.sh +++ b/nixos/pkgs/plex-pass/update.sh @@ -1,6 +1,4 @@ #! /usr/bin/env bash - -set -x shopt -s extglob set -eu -o pipefail