Ashhhleyyy
867a2eb2af
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
27 lines
No EOL
896 B
YAML
27 lines
No EOL
896 B
YAML
platform: linux/arm64
|
|
|
|
pipeline:
|
|
build:
|
|
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 ..
|
|
- sha256sum deploy.zip
|
|
- '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
|
|
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
|
|
|
|
branches:
|
|
- main |