Revert "temp rm non-working pipelines"
Some checks failed
ci/woodpecker/manual/check-deployment-basic Pipeline failed
ci/woodpecker/manual/check-deployment-cli Pipeline failed
ci/woodpecker/manual/cd Pipeline failed
ci/woodpecker/manual/check-dns-nixos Pipeline failed
ci/woodpecker/manual/check-dns-ubuntu Pipeline failed
ci/woodpecker/manual/check-deployment-panel Pipeline failed
ci/woodpecker/manual/check-mastodon Pipeline failed
ci/woodpecker/manual/check-peertube Pipeline failed
ci/woodpecker/manual/check-pre-commit Pipeline was successful
ci/woodpecker/manual/check-data-model Pipeline was successful
ci/woodpecker/manual/update Pipeline was successful
ci/woodpecker/manual/check-panel Pipeline failed

This reverts commit 101717899e.
This commit is contained in:
Kiara Grouwstra 2025-08-04 12:46:40 +02:00
parent e6c35dc29a
commit 4b564d7bc9
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
10 changed files with 138 additions and 0 deletions

28
.woodpecker/cd.yaml Normal file
View file

@ -0,0 +1,28 @@
when:
- event: manual
- event: push
branch: main
steps:
- name: build
image: nixos/nix
commands:
- whoami
- pwd
- ls
- ls /home
- env
- |
mkdir -p ~/.ssh
echo "$CD_SSH_KEY" > ~/.ssh/id_ed25519
ls -l ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- bash -c "strace -f -o ssh-agent.log ssh-agent -s"
- cat ssh-agent.log
- |
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
- nix-shell --run 'eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && ssh-agent -s && SHELL=$(which bash) nixops4 apply -v default'
environment:
CD_SSH_KEY:
from_secret: cd_ssh_key

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-data-model
image: nixos/nix
commands:
- nix-shell --run 'nix-unit ./deployment/data-model-test.nix'

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-deployment-basic
image: nixos/nix
commands:
- nix build .#checks.x86_64-linux.deployment-basic -L

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-deployment-cli
image: nixos/nix
commands:
- nix build .#checks.x86_64-linux.deployment-cli -L

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-deployment-panel
image: nixos/nix
commands:
- nix build .#checks.x86_64-linux.deployment-panel -L

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-mastodon
image: nixos/nix
commands:
- nix build .#checks.x86_64-linux.test-mastodon-service -L

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-panel
image: nixos/nix
commands:
- nix-build -A tests.panel

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-peertube
image: nixos/nix
commands:
- nix build .#checks.x86_64-linux.test-peertube-service -L

View file

@ -0,0 +1,11 @@
when:
- event: manual
- event: pull_request
- event: push
branch: main
steps:
- name: check-pre-commit
image: nixos/nix
commands:
- nix-build -A tests

22
.woodpecker/update.yaml Normal file
View file

@ -0,0 +1,22 @@
when:
- event: manual
# - event: cron
# cron: updater
steps:
- name: lockfile
image: nixos/nix
# image: nixos/nix
commands:
- nix-shell --run "npins --verbose update"
# - name: Create PR
# uses: https://github.com/KiaraGrouwstra/gitea-create-pull-request@f9f80aa5134bc5c03c38f5aaa95053492885b397
# with:
# remote-instance-api-version: v1
# token: "$DEPLOY_KEY"
# branch: npins-update
# commit-message: "npins: update sources"
# title: "npins: update sources"
environment:
DEPLOY_KEY:
from_secret: deploy_key