Trigger external jenkins job to make a release

develop
Nikita Tokarchuk 3 years ago
parent be21cf0e3a
commit 1559cc3ee4
Signed by: mainnika
GPG Key ID: A595FB7E3E56911C
  1. 14
      .github/workflows/image-make-and-publish.yml

@ -85,3 +85,17 @@ jobs:
env:
COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}
- name: Trigger release job
if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }}
uses: toptal/jenkins-job-trigger-action@master
with:
jenkins_url: ${{ secrets.JENKINS_URL }}
jenkins_user: ${{ secrets.JENKINS_USER }}
jenkins_token: ${{ secrets.JENKINS_TOKEN }}
job_name: "nikita-tokarch-uk/job/make-a-release"
job_params: |
{
"VERSION": "${{ steps.calver.outputs.current }}"
}
job_timeout: "300" # Default 30 sec. (optional)

Loading…
Cancel
Save