This commit is contained in:
parent
db9d75f86c
commit
095b1ade09
2 changed files with 33 additions and 1 deletions
27
.woodpecker/build-deploy.yaml
Normal file
27
.woodpecker/build-deploy.yaml
Normal 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
|
|
@ -10,9 +10,14 @@
|
|||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||
perSystem = { config, self', pkgs, lib, system, ... }: let
|
||||
in {
|
||||
in rec {
|
||||
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 {
|
||||
name = "noe.sh";
|
||||
version = "0.0.0";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue