diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..f34dafe --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,42 @@ +#!groovy + +pipeline { + agent none + + stages { + stage('Compile List and Push to Gitea') { + when { + beforeAgent true; + branch 'main' + } + agent { + label 'linux' + } + stages { + stage('NPM Install') { + steps { + sh 'npm clean-install' + } + } + stage('Compile Adblock List') { + steps { + sh 'npm run compile' + } + } + stage('git push') { + steps { + withCredentials([ + gitUsernamePassword(credentialsId: 'gitea-jenkins-user-token') + ]) { + sh ''' + git add . + git commit -m "Update Compiled Adblock List" + git push + ''' + } + } + } + } + } + } +} diff --git a/configuration.json b/configuration.json index 931b9d0..8a2bdc2 100644 --- a/configuration.json +++ b/configuration.json @@ -139,6 +139,11 @@ "name": "NoTrack Malware Blocklist", "source": "https://quidsup.net/notrack/blocklist.php?download=malwaredomains", "type": "adblock" + }, + { + "name": "Fix Functionality", + "source": "src/fix-functionality.txt", + "type": "adblock" } ], "transformations": [ diff --git a/src/fix-functionality.txt b/src/fix-functionality.txt new file mode 100644 index 0000000..1b64daa --- /dev/null +++ b/src/fix-functionality.txt @@ -0,0 +1,2 @@ +# Allow Bring List +@@||api.getbring.com^ \ No newline at end of file