feat(ci): just use nix for all the things
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
3a2d66b735
commit
0bf868b658
1 changed files with 3 additions and 7 deletions
10
.drone.yml
10
.drone.yml
|
@ -7,16 +7,12 @@ platform:
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build site
|
- name: Build and deploy site
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
- nix --experimental-features 'nix-command flakes' build
|
- nix --experimental-features 'nix-command flakes' build
|
||||||
- name: Deploy site
|
- cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r ../deploy.zip * && cd ..
|
||||||
image: alpine
|
- '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'
|
||||||
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'
|
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: GITEA_TOKEN
|
from_secret: GITEA_TOKEN
|
||||||
|
|
Loading…
Reference in a new issue