diff --git a/.woodpecker/job.yaml b/.woodpecker/job.yaml index c0ffef9..00e0f52 100644 --- a/.woodpecker/job.yaml +++ b/.woodpecker/job.yaml @@ -1,9 +1,24 @@ - when: - - event: push - - branch: master +when: + - event: push - steps: - deploy: - commands: - - sh ~/nixconf/update.sh - - nh os switch -H sortug ~/nixconf --target-host root@sortug +steps: + - name: smoke + image: bash + commands: + - pwd + - whoami + - hostname + - printf '%s %s %s\n' "$(date --iso-8601=seconds)" "$(hostname)" "$(git rev-parse --short HEAD)" >> /var/tmp/woodpecker-smoke.log + - tail -n 5 /var/tmp/woodpecker-smoke.log + +--- + +when: + - event: push + - branch: master + +steps: + - name: deploy + image: bash + commands: + - sudo -n /usr/local/libexec/deploy-kotsukotsu 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 diff --git a/lol.lmao b/lol.lmao new file mode 100644 index 0000000..01e79c3 --- /dev/null +++ b/lol.lmao @@ -0,0 +1,3 @@ +1 +2 +3