dotfiles/.woodpecker/sync.yml

15 lines
1,014 B
YAML

pipeline:
push_to_github:
image: nixpkgs/nix-flakes:latest
pull: true
commands:
- export AWS_ACCESS_KEY_ID="nix-builder"
- export AWS_SECRET_ACCESS_KEY="$MINIO_NIX_BUILDER_KEY"
- nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https&region=cyplodev' --no-sandbox -c git lfs fetch --all
- nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https&region=cyplodev' --no-sandbox -c git fetch --unshallow origin
- nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https&region=cyplodev' --no-sandbox -c git remote add github https://cyplo:$GITHUB_TOKEN@github.com/cyplo/dotfiles.git
- nix develop --substituters 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https&region=cyplodev' --no-sandbox -c git push github --all --force
- nix copy --all --to 's3://nix-store?endpoint=objects.cyplo.dev&scheme=https&region=cyplodev'
secrets: [ github_token , minio_nix_builder_key ]