Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
23
.woodpecker/ci.yml
Normal file
23
.woodpecker/ci.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
pipeline:
|
||||||
|
build-and-deploy:
|
||||||
|
image: nixos/nix:latest
|
||||||
|
environment:
|
||||||
|
- LANG=en_US.UTF-8
|
||||||
|
commands:
|
||||||
|
# - nix-env -iA nixpkgs.cachix nixpkgs.rsync nixpkgs.jq
|
||||||
|
# - cachix use $CACHIX_NAME
|
||||||
|
# - nix --extra-experimental-features "nix-command flakes" -L build .#site
|
||||||
|
# | jq -r '.[].outputs | to_entries[].value'
|
||||||
|
# | cachix push $CACHIX_NAME
|
||||||
|
# - nix --extra-experimental-features "nix-command flakes" -L shell .#site
|
||||||
|
# - site build
|
||||||
|
- echo $LANG
|
||||||
|
- eval `ssh-agent -s`
|
||||||
|
- echo "$REMOTE_KEY" | tr -d '\r' | ssh-add -
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
|
- chmod 700 ~/.ssh
|
||||||
|
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
- ssh -p 22001 root@weirdnatto.in
|
||||||
|
|
||||||
|
secrets: [ cachix_auth_token, cachix_name, remote_key ]
|
||||||
Reference in New Issue
Block a user