summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..6904634
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,34 @@
+pipeline {
+ agent { docker { image 'archlinux:latest' } }
+ triggers { cron('H H */7 * *') }
+
+ environment {
+ SECRET_SSH = credentials('adonis-ssh-key')
+ SECRET_GPG = credentials('toufy-gpg-key')
+ SECRET_GPG_PASS = credentials('toufy-gpg-passwd')
+ }
+
+ stages {
+ stage('checkout repo') {
+ steps {
+ checkout scm
+ }
+ }
+
+ stage('build') {
+ steps {
+ sh '''
+ set -euo pipefail
+ chmod 700 ./taur.sh
+ ./taur.sh
+ '''
+ }
+ }
+ }
+
+ post {
+ always {
+ echo 'pipeline finished'
+ }
+ }
+}