summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-08 07:45:30 +0200
committerGitHub <noreply@github.com>2021-06-08 07:45:30 +0200
commit23076b4c8956368ca954ce0769b4bb855db75b33 (patch)
treec21e71f4d4c9058a23d13775667a963002edffee /Jenkinsfile
parent0729ba52d03f662ce4b2f03423a688f9e9081744 (diff)
downloadvyos-build-23076b4c8956368ca954ce0769b4bb855db75b33.tar.gz
vyos-build-23076b4c8956368ca954ce0769b4bb855db75b33.zip
Jenkins: trigger GitHub action for community page rebuild on ISO upload
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 985cbb30..87b929be 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -186,6 +186,15 @@ pipeline {
s3Copy(fromBucket: 's3-us.vyos.io', fromPath: 'rolling/' + getGitBranchName() + '/' + files[0].name,
toBucket: 's3-us.vyos.io', toPath: getGitBranchName() + '/vyos-rolling-latest.iso')
}
+ // Trigger GitHub action which will re-build the static community website which
+ // also holds the AWS download links to the generated ISO images
+ withCredentials([string(credentialsId: 'GitHub-API-Token', variable: 'TOKEN')]) {
+ sh '''
+ curl -X POST --header "Accept: application/vnd.github.v3+json" \
+ --header 'authorization: Bearer $TOKEN' --data '{"ref": "production"}' \
+ https://api.github.com/repos/vyos/community.vyos.net/actions/workflows/main.yml/dispatches
+ '''
+ }
}
// Publish ISO image to snapshot bucket