chore(ci): move script.sh to CI config

to stop the build as soon as current script fails,
especially if wget fails in prerequisites.sh
This commit is contained in:
curben 2019-05-11 20:27:14 +09:30
parent 8a0a5e73f9
commit f700065788
2 changed files with 26 additions and 17 deletions

View File

@ -33,8 +33,32 @@ deploy:
# Change to the downloaded repo directory
- cd build/
# Execute script.sh
- sh utils/script.sh
# Create a temporary working folder
- mkdir tmp/ && cd tmp/
# Download URLhaus database and Umbrella Top 1M
- sh ../utils/prerequisites.sh
# Process the Umbrella Top 1M
- sh ../utils/umbrella-top-1m.sh
# Parse domains from URLhaus excluding popular domains
- sh ../utils/malware-domains.sh
# Parse popular domains that also appear in URLhaus
- sh ../utils/urlhaus-top-domains.sh
# Parse malware URLs from popular domains
- sh ../utils/malware-url-top-domains.sh
# Merge malware domains and URLs
- sh ../utils/urlhaus-filter.sh
# Commit the changes
- sh ../utils/commit.sh
# Clean up the working folder
- cd ../ && rm -r tmp/
# Push the commit
- git push

View File

@ -1,15 +0,0 @@
#!/bin/sh
mkdir tmp/
cd tmp/
sh ../utils/prerequisites.sh
sh ../utils/umbrella-top-1m.sh
sh ../utils/malware-domains.sh
sh ../utils/urlhaus-top-domains.sh
sh ../utils/malware-url-top-domains.sh
sh ../utils/urlhaus-filter.sh
sh ../utils/commit.sh
cd ../
rm -r tmp/