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

This commit is contained in:
41666 2025-05-14 07:55:40 -07:00
parent d7b00d742d
commit 6efccf6ece
5 changed files with 112 additions and 21 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://noe.sh'
environment:
AWS_ACCESS_KEY_ID:
from_secret: static_sites_client
AWS_SECRET_ACCESS_KEY:
from_secret: static_sites_secret