Commit 99dd519
Changed files (3)
.forgejo
workflows
.woodpecker
.forgejo/workflows/push-image.yml
@@ -1,20 +0,0 @@
-name: Build and push image
-
-on:
- push:
- branches:
- - main
- workflow_dispatch:
-
-jobs:
- push-image:
- runs-on: nixos-latest-high
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Login to container registry
- run: echo "${{ secrets.REGISTRY_PASSWORD }}" | podman login repo.hpcesia.com --username HPCesia --password-stdin
-
- - name: Build and push image
- run: nix run .#packages.x86_64-linux.default.copyToRegistry
.forgejo/workflows/update-flake.yml
@@ -1,28 +0,0 @@
-name: Update flake dependencies
-
-on:
- schedule:
- - cron: "0 0 * * 1"
- workflow_dispatch:
-
-jobs:
- update-flake:
- runs-on: nixos-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Update flake.lock
- run: nix flake update
-
- - name: Create pull request
- uses: https://github.com/maxking/forgejo-create-pr@main
- with:
- token: ${{ env.FORGEJO_TOKEN }}
- base: main
- pr-branch: update/flake-deps
- commit-message: "chore: update flake.lock"
- pr-title: "chore: update flake.lock"
- pr-body: |
- Weekly automatic update of flake dependencies.
- Runs `nix flake update` on nixos-latest.
.woodpecker/update-flake-lock.yml
@@ -0,0 +1,40 @@
+when:
+ - event: [cron, manual]
+ cron: "update flake lock"
+
+steps:
+ - name: update
+ image: docker.io/nixos/nix:2.32.8
+ commands:
+ - nix flake update --extra-experimental-features "flakes nix-command"
+
+ - name: push
+ image: docker.io/appleboy/drone-git-push:1.2.3
+ settings:
+ remote: ${CI_REPO_CLONE_SSH_URL}
+ ssh_key:
+ from_secret: deploy_key
+ commit: true
+ commit_message: "Update Nix flake lock"
+ author_name: "Woodpecker-CI [bot]"
+ author_email: woodpecker-ci@noreply.example.org
+ branch: ci/update-flake-lock
+ force: true
+
+ - name: create-pr
+ image: docker.io/woodpeckercommunity/gitea-pull-request-create-plugin:0.1.3
+ settings:
+ gitea_address: https://codeberg.org
+ gitea_token:
+ from_secret: forge_token
+ owner: ${CI_REPO_OWNER}
+ repo: ${CI_REPO_NAME}
+ branch: ci/update-flake
+ base_branch: main
+ close_pr_if_empty: true
+ delete_branch_if_pr_empty: true
+ pr_title: "CI: Update Nix flake lock"
+ pr_body: |
+ PR automatically created by Woodpecker CI.
+
+ Update Nix flake lock to latest.