ci?
This commit is contained in:
parent
7b650f024c
commit
f41ee42f6a
3 changed files with 83 additions and 0 deletions
23
.woodpecker/build-deploy.yaml
Normal file
23
.woodpecker/build-deploy.yaml
Normal file
|
@ -0,0 +1,23 @@
|
|||
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://doll.repair'
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: static_sites_client
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: static_sites_secret
|
Loading…
Add table
Add a link
Reference in a new issue