Templates and examples for Github-CI
examples/jenkins/.github/workflows/deploy-ENV.yaml: Github Actions to build Jenkins jobdeploy-ENV
- Copy and paste the
.githubfolder insideexamples/jenkinsto your repository and create thedevandproductionbranches if they do not exist. - In your github repo, access
Action secrets(Secrets) in Settings, and create 5 new repository secrets:JENKINS_USER,JENKINS_TOKEN,JENKINS_HOST,JENKINS_JOB_DEVandJENKINS_JOB_STG
- To generate a
JENKINS_TOKENfollow these instructions: https://www.jenkins.io/blog/2018/07/02/new-api-token-system/ - The value of
JENKINS_USERmust be the same as the user who generated theJENKINS_TOKEN JENKINS_HOSTis the host of the Jenkins instance where the jobs will be builtJENKINS_JOB_ENVis the Jenkins route to the job