2023-07-04 13:18:40 +00:00
|
|
|
platform: linux/arm64
|
2022-12-20 14:13:19 +00:00
|
|
|
|
2023-07-04 13:23:41 +00:00
|
|
|
pipeline:
|
2023-07-04 22:02:47 +00:00
|
|
|
build:
|
2023-07-04 13:22:07 +00:00
|
|
|
image: nixos/nix
|
|
|
|
commands:
|
|
|
|
- nix --experimental-features 'nix-command flakes' build
|
|
|
|
- cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r $DRONE_WORKSPACE/deploy.zip * && cd ..
|
2023-07-04 13:36:35 +00:00
|
|
|
- sha256sum deploy.zip
|
2023-07-04 13:22:07 +00:00
|
|
|
- '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'
|
|
|
|
secrets:
|
|
|
|
- GITEA_TOKEN
|
2023-07-04 22:02:47 +00:00
|
|
|
deploy:
|
|
|
|
image: woodpeckerci/plugin-s3
|
|
|
|
settings:
|
|
|
|
bucket: project-sites
|
|
|
|
source: result/**/*
|
|
|
|
target: /caaard
|
|
|
|
path_style: true
|
|
|
|
endpoint: https://minio.ashhhleyyy.dev
|
|
|
|
access_key:
|
|
|
|
from_secret: minio_user
|
|
|
|
secret_key:
|
|
|
|
from_secret: minio_password
|
2022-12-20 14:13:19 +00:00
|
|
|
|
2023-07-04 13:18:40 +00:00
|
|
|
branches:
|
|
|
|
- main
|