ci!!
All checks were successful
ci/woodpecker/push/build-deploy Pipeline was successful

This commit is contained in:
41666 2025-05-14 00:18:25 -07:00
parent db9d75f86c
commit 095b1ade09
2 changed files with 33 additions and 1 deletions

View file

@ -0,0 +1,27 @@
when:
- event: push
branch: main
steps:
- name: build & deploy
image: nixos/nix
# volumes:
# - /nix:/mnt/nix:ro
commands:
- |
echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
#echo 'store = unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt' >> /etc/nix/nix.conf
- nix build -L .
- |
nix-shell -p s3cmd --command 's3cmd \
--host=static-sites.hoki-porgy.ts.net:9000 \
--host-bucket=static-sites.hoki-porgy.ts.net:9000 \
--no-ssl \
sync result/* s3://blood.pet'
environment:
AWS_ACCESS_KEY_ID:
from_secret: static_sites_client
AWS_SECRET_ACCESS_KEY:
from_secret: static_sites_secret

View file

@ -10,9 +10,14 @@
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } { outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" ]; systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { config, self', pkgs, lib, system, ... }: let perSystem = { config, self', pkgs, lib, system, ... }: let
in { in rec {
devShells.default = import ./shell.nix { inherit pkgs; }; devShells.default = import ./shell.nix { inherit pkgs; };
apps.default = apps.dev;
apps.dev = pkgs.writeShellScript "noe.sh" ''
${pkgs.python3} -m http.server -d ${packages.default}
'';
packages.default = inputs.teapot.packages.${system}.brewTea { packages.default = inputs.teapot.packages.${system}.brewTea {
name = "noe.sh"; name = "noe.sh";
version = "0.0.0"; version = "0.0.0";