diff --git a/.woodpecker/job.yaml b/.woodpecker/job.yaml index 00e0f52..c0ffef9 100644 --- a/.woodpecker/job.yaml +++ b/.woodpecker/job.yaml @@ -1,24 +1,9 @@ -when: - - event: push + when: + - event: push + - branch: master -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 + steps: + deploy: + commands: + - sh ~/nixconf/update.sh + - nh os switch -H sortug ~/nixconf --target-host root@sortug diff --git a/.woodpecker/wtf b/.woodpecker/wtf deleted file mode 100644 index f36f21a..0000000 --- a/.woodpecker/wtf +++ /dev/null @@ -1,26 +0,0 @@ -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 deleted file mode 100644 index f36f21a..0000000 --- a/.woodpecker/wtfisthis +++ /dev/null @@ -1,26 +0,0 @@ -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 deleted file mode 100644 index 01e79c3..0000000 --- a/lol.lmao +++ /dev/null @@ -1,3 +0,0 @@ -1 -2 -3