This commit is contained in:
parent
286ca9cd8f
commit
9acd642279
1 changed files with 26 additions and 0 deletions
26
.drone.yml
Normal file
26
.drone.yml
Normal file
|
@ -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]
|
Loading…
Reference in a new issue