dotfiles/.woodpecker/sync.yml

15 lines
1,014 B
YAML
Raw Normal View History

2022-11-08 13:48:19 +00:00
pipeline:
2022-11-08 19:41:48 +00:00
2022-12-03 16:06:51 +00:00
push_to_github:
image: nixpkgs/nix-flakes:latest
pull: true
2022-12-03 16:14:23 +00:00
commands:
2022-12-25 21:15:51 +00:00
- export AWS_ACCESS_KEY_ID="nix-builder"
- export AWS_SECRET_ACCESS_KEY="$MINIO_NIX_BUILDER_KEY"
2022-12-25 23:23:34 +00:00
- 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 ]