Add autoupdate runner + fix a typo in the vaultwarden config
This commit is contained in:
41
.gitea/workflows/autoupdate.yml
Normal file
41
.gitea/workflows/autoupdate.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Weekly Flake Update
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 4"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update_and_check_flake:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NIXPKGS_ALLOW_UNFREE: 1
|
||||
steps:
|
||||
- name: Install sudo
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y sudo
|
||||
- uses: https://code.forgejo.org/actions/checkout@v6
|
||||
|
||||
- name: Set up Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v31
|
||||
with:
|
||||
github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }} #Fuck github
|
||||
|
||||
- name: Run nix flake update
|
||||
run: nix flake update
|
||||
- name: Run nix flake check
|
||||
run: nix flake check --all-systems --verbose
|
||||
|
||||
- name: Create Gitea PR
|
||||
uses: https://github.com/Mai0313/create-pull-request@main
|
||||
with:
|
||||
github-server-url: https://git.dynamicdiscord.de
|
||||
token: ${{ secrets.AHTLONS_GITEA_TOKEN }}
|
||||
commit-message: 'Update flake.lock'
|
||||
committer: 'malobot <malobot@systemli.org>'
|
||||
title: 'Update flake.lock'
|
||||
assignees: 'ahtlon'
|
||||
@@ -38,7 +38,7 @@ with lib;
|
||||
backupDir = "/var/local/vaultwarden/backup";
|
||||
environmentFile = config.sops.secrets.vaultwarden_env.path;
|
||||
config = {
|
||||
DOMAIN = "http://keys.malobeo.org";
|
||||
DOMAIN = "https://keys.malobeo.org";
|
||||
SIGNUPS_ALLOWED = true;
|
||||
#WEBSERVER
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
|
||||
Reference in New Issue
Block a user