Commit Graph

7 Commits

Author SHA1 Message Date
Edd
6079e2027d
Fix IPFS change detection
nx affected `head` was set to `master` instead of `HEAD`, which cause every commit to detect a change and deploy.

- Fix head argument for nx affected command
2022-04-13 09:35:09 +00:00
Edd
ad4c7d88ff Review feedback: better affected detection that avoids collisions 2022-04-12 10:52:10 +01:00
Edd
d1e50208aa Review feedback: remove redundant check 2022-04-12 10:48:15 +01:00
Edd
47f1f73582 Update workflow to remove pre-script nx affected 2022-04-11 18:55:59 +01:00
Edd
bfdb1e0b62 Rewrite ipfs-deploy to work differently
Feedback on the initial PR pointed out the flaw that just assuming
that the previous commit was HEAD~1 would be inaccurate, so this
rewrite instead fetches the appropriate commit for each Fleek project,
does the appropriate nx affected call, and triggers a deploy.

This allows for each project to independently get deployed only when
there is a change that affects it on master.

The script is written to have no dependencies, and lazily uses curl
instead of node http. It feels a bit icky, but for a build script feels
reasonable. Also as the header comment notes, it seems like an nx build
script would be more appropriate, but because it needs the appropriate
commit for each project, I resorted to a shell script.

- Rewrite ./tools/ipfs-deploy.js
2022-04-11 18:51:32 +01:00
Edd
0e13248bee Address review comments 2022-04-11 14:54:10 +01:00
Edd
32cef6ef0c Genericise tool name, add workflow 2022-04-11 12:42:22 +01:00