From 0bf868b658954063d66f952df282f0b4c59119fb Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 20 Dec 2022 17:39:25 +0000 Subject: [PATCH] feat(ci): just use nix for all the things --- .drone.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7020747..c31c536 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,16 +7,12 @@ platform: arch: arm64 steps: -- name: Build site +- name: Build and deploy 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 result/ && 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' + - cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r ../deploy.zip * && cd .. + - 'nix --experimental-features "nix-command flakes" run nixpkgs#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