From 898ec9b504913c0a4a80346b0cec88a9a74fea6c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 1 Apr 2023 21:04:58 +0100 Subject: [PATCH] ci: remove Drone CI --- .drone.jsonnet | 64 -------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 .drone.jsonnet diff --git a/.drone.jsonnet b/.drone.jsonnet deleted file mode 100644 index 79e02bc..0000000 --- a/.drone.jsonnet +++ /dev/null @@ -1,64 +0,0 @@ -local Pipeline(isDev) = { - kind: "pipeline", - type: "exec", - name: if isDev then "Deploy to dev" else "Deploy to prod", - # Dev ignores "master", prod only triggers on "master" - trigger: { branch: { [if isDev then "exclude" else "include"]: [ "main" ] } }, - steps: [ - { - # We want to clone the submodules, which isn't done by default - name: "submodules", - commands: [ - "git submodule update --recursive --init", - ] - }, - { - # Include pre-commit checks, which include markdownlint - name: "check", - commands: [ - "nix flake check", - ], - }, - { - # If dev, include drafts and future articles, change base URL - name: "build", - commands: [ - "nix develop -c make " + if isDev then "build-dev" else "build-prod", - ], - }, - { - name: "deploy", - commands: [ - "nix run github:ambroisie/nix-config#drone-rsync", - ], - environment: { - # Trailing slash to synchronize the folder's *content* to the target - SYNC_SOURCE: "public/", - SYNC_HOST: { from_secret: "ssh_host" }, - SYNC_TARGET: { from_secret: "ssh_target" + if isDev then "_dev" else "" }, - SYNC_USERNAME: { from_secret: "ssh_user" }, - SYNC_KEY: { from_secret: "ssh_key" }, - SYNC_PORT: { from_secret: "ssh_port" }, - }, - }, - { - name: "notify", - commands: [ - "nix run github:ambroisie/matrix-notifier", - ], - environment: { - ADDRESS: { from_secret: "matrix_homeserver" }, - ROOM: { from_secret: "matrix_roomid" }, - USER: { from_secret: "matrix_username" }, - PASS: { from_secret: "matrix_password" }, - }, - when: { status: [ "failure", "success", ] }, - }, - ] -}; - - -[ - Pipeline(false), - Pipeline(true), -]