forked from fediversity/fediversity
Compare commits
No commits in common. "1b2d3092e4722641a8f065f17c4bbb8b028c15ab" and "d4c5fa5c9cdf0afb50c3789e1a7d77859a3882f7" have entirely different histories.
1b2d3092e4
...
d4c5fa5c9c
12 changed files with 146 additions and 6 deletions
28
.woodpecker/cd.yaml
Normal file
28
.woodpecker/cd.yaml
Normal 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
|
||||
11
.woodpecker/check-data-model.yaml
Normal file
11
.woodpecker/check-data-model.yaml
Normal 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'
|
||||
11
.woodpecker/check-deployment-basic.yaml
Normal file
11
.woodpecker/check-deployment-basic.yaml
Normal 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
|
||||
11
.woodpecker/check-deployment-cli.yaml
Normal file
11
.woodpecker/check-deployment-cli.yaml
Normal 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
|
||||
11
.woodpecker/check-deployment-panel.yaml
Normal file
11
.woodpecker/check-deployment-panel.yaml
Normal 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
|
||||
|
|
@ -7,8 +7,8 @@ when:
|
|||
|
||||
steps:
|
||||
- name: check-dns-nixos
|
||||
image: nixery.dev/dig/git/unixtools.ping
|
||||
image: nixos/nix
|
||||
commands:
|
||||
- ping -v github.com
|
||||
- dig +trace github.com
|
||||
- git clone -v https://git.fediversity.eu/kiara/Fediversity.git
|
||||
- nix-shell -p unixtools.ping --run 'ping -v github.com'
|
||||
- nix-shell -p dig --run 'dig +trace github.com'
|
||||
- nix-shell -p git --run 'git clone -v https://git.fediversity.eu/kiara/Fediversity.git'
|
||||
|
|
|
|||
|
|
@ -7,8 +7,10 @@ when:
|
|||
|
||||
steps:
|
||||
- name: check-dns-ubuntu
|
||||
image: arunvelsriram/utils
|
||||
image: ubuntu
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install iputils-ping dnsutils git
|
||||
- git clone -v https://git.fediversity.eu/kiara/Fediversity.git
|
||||
- ping -v github.com
|
||||
- dig +trace github.com
|
||||
- git clone -v https://git.fediversity.eu/kiara/Fediversity.git
|
||||
|
|
|
|||
11
.woodpecker/check-mastodon.yaml
Normal file
11
.woodpecker/check-mastodon.yaml
Normal 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
|
||||
11
.woodpecker/check-panel.yaml
Normal file
11
.woodpecker/check-panel.yaml
Normal 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
|
||||
11
.woodpecker/check-peertube.yaml
Normal file
11
.woodpecker/check-peertube.yaml
Normal 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
|
||||
11
.woodpecker/check-pre-commit.yaml
Normal file
11
.woodpecker/check-pre-commit.yaml
Normal 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
22
.woodpecker/update.yaml
Normal 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
|
||||
Loading…
Add table
Reference in a new issue