diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d01f598..f934e5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,6 @@ on: push: branches: - master - - staging - - release-* schedule: - cron: '51 2 * * *' jobs: diff --git a/.github/workflows/upgrade-flakes.yml b/.github/workflows/upgrade-flakes.yml index 1f1f737..b7e91f9 100644 --- a/.github/workflows/upgrade-flakes.yml +++ b/.github/workflows/upgrade-flakes.yml @@ -18,9 +18,5 @@ jobs: uses: DeterminateSystems/update-flake-lock@v19 with: token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} - pr-body: | - Automated changes by the update-flake-lock - ``` - {{ env.GIT_COMMIT_MESSAGE }} - ``` - bors merge + pr-labels: | + merge-queue diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..a52ac17 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,46 @@ +queue_rules: + - name: default + merge_conditions: + - check-success=Evaluate flake.nix + - check-success=check age-keys [x86_64-linux] + - check-success=check age-keys-23_05 [x86_64-linux] + - check-success=check age-ssh-keys [x86_64-linux] + - check-success=check age-ssh-keys-23_05 [x86_64-linux] + - check-success=check cross-build-23_05 [x86_64-linux] + - check-success=check default-23_05 [x86_64-linux] + - check-success=check lint-23_05 [x86_64-linux] + - check-success=check pgp-keys [x86_64-linux] + - check-success=check pgp-keys-23_05 [x86_64-linux] + - check-success=check pruning [x86_64-linux] + - check-success=check pruning-23_05 [x86_64-linux] + - check-success=check sops-init-gpg-key-23_05 [x86_64-linux] + - check-success=check sops-pgp-hook-23_05 [x86_64-linux] + - check-success=check sops-pgp-hook-test-23_05 [x86_64-linux] + - check-success=check ssh-keys-23_05 [x86_64-linux] + - check-success=check ssh-to-pgp-23_05 [x86_64-linux] + - check-success=check templates [x86_64-linux] + - check-success=check unit-tests-23_05 [x86_64-linux] + - check-success=check user-passwords [x86_64-linux] + - check-success=devShell default [x86_64-linux] + - check-success=package cross-build [x86_64-linux] + - check-success=package default [x86_64-linux] + - check-success=package lint [x86_64-linux] + - check-success=package sops-import-keys-hook [x86_64-linux] + - check-success=package sops-init-gpg-key [x86_64-linux] + - check-success=package sops-install-secrets [x86_64-linux] + - check-success=package sops-pgp-hook [x86_64-linux] + - check-success=package sops-pgp-hook-test [x86_64-linux] + - check-success=package unit-tests [x86_64-linux] + - check-success=tests +defaults: + actions: + queue: + allow_merging_configuration_change: true + method: rebase +pull_request_rules: + - name: merge using the merge queue + conditions: + - base=master + - label~=merge-queue|dependencies + actions: + queue: {} diff --git a/README.md b/README.md index 5c4484b..9672ffa 100644 --- a/README.md +++ b/README.md @@ -795,8 +795,7 @@ The secrets are decrypted in a systemd user service called `sops-nix`, so other If you prefer having a separate GPG key, sops-nix also comes with a helper tool, `sops-init-gpg-key`: ```console -$ nix-shell -p sops-init-gpg-key -$ sops-init-gpg-key --hostname server01 --gpghome /tmp/newkey +$ nix run github:Mic92/sops-nix#sops-init-gpg-key -- --hostname server01 --gpghome /tmp/newkey # You can use the following command to save it to a file: $ cat > server01.asc < server01.asc <