caaard/.woodpecker.yml
Ashhhleyyy 7f86c5aeb7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: show sha256 hash of zip
2023-07-04 14:36:35 +01:00

15 lines
No EOL
601 B
YAML

platform: linux/arm64
pipeline:
build-and-deploy:
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
branches:
- main