diff --git a/.woodpecker/wtf b/.woodpecker/wtf new file mode 100644 index 0000000..f36f21a --- /dev/null +++ b/.woodpecker/wtf @@ -0,0 +1,26 @@ +steps: + checks: + image: nixos/nix:latest + commands: + - nix develop --accept-flake-config -c bun install --frozen-lockfile + - nix develop --accept-flake-config -c bun run lint + - nix develop --accept-flake-config -c bun run typecheck + - nix develop --accept-flake-config -c bun run build + - nix develop --accept-flake-config -c bun run update:bun-nix + - git diff --exit-code bun.nix + - nix build --accept-flake-config .#default + +when: + - event: [pull_request, push] + +--- + +steps: + deploy: + image: nixos/nix:latest + commands: + - sudo -n /usr/local/libexec/deploy-sortug + +when: + - event: push + - branch: master diff --git a/.woodpecker/wtfisthis b/.woodpecker/wtfisthis new file mode 100644 index 0000000..f36f21a --- /dev/null +++ b/.woodpecker/wtfisthis @@ -0,0 +1,26 @@ +steps: + checks: + image: nixos/nix:latest + commands: + - nix develop --accept-flake-config -c bun install --frozen-lockfile + - nix develop --accept-flake-config -c bun run lint + - nix develop --accept-flake-config -c bun run typecheck + - nix develop --accept-flake-config -c bun run build + - nix develop --accept-flake-config -c bun run update:bun-nix + - git diff --exit-code bun.nix + - nix build --accept-flake-config .#default + +when: + - event: [pull_request, push] + +--- + +steps: + deploy: + image: nixos/nix:latest + commands: + - sudo -n /usr/local/libexec/deploy-sortug + +when: + - event: push + - branch: master