From 23076b4c8956368ca954ce0769b4bb855db75b33 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 8 Jun 2021 07:45:30 +0200 Subject: Jenkins: trigger GitHub action for community page rebuild on ISO upload --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Jenkinsfile') 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 -- cgit v1.2.3