From 9acd6422790484e54d5a988fc09e44741db8fa52 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 20 Dec 2022 14:13:19 +0000 Subject: [PATCH] feat(ci): add drone CI --- .drone.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..53a7872 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +kind: pipeline +type: docker +name: Build + +platform: + os: linux + arch: arm64 + +steps: +- name: Build site + image: nixos/nix + commands: + - nix --experimental-features 'nix-command flakes' build +- name: Deploy site + image: alpine + commands: + - apk add curl ca-certificates zip + - cd dist && zip -r ../deploy.zip * && cd .. + - 'curl --fail --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/caaard/$DRONE_COMMIT_SHA/caaard.zip' + environment: + GITEA_TOKEN: + from_secret: GITEA_TOKEN + +trigger: + event: [push] + branch: [main]