summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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