-
-
Notifications
You must be signed in to change notification settings - Fork 6
Jenkins Workflow
##Github
- Create a github project using the format
docker-Project
as repository name.
- Next step is to go into the repository settings - Collaborators & teams and add Docker Team
- Now copy the files from https://github.com/linuxserver/docker-devtemplates across to the new repository (omitting the templates root folder)
##Jenkins
-
Go to http://ci.linuxserver.io/view/All/ and login with your github credentials.
-
Click on Docker
- Click on Development
- Click on New Item
####Fill In the Information
-
Item Name
Example
-
Ensure Copy Existing Item is selected, and paste in
Templates/NewProjectTemplate
(Capitalisation must be exactly the same) -
Click OK
####Next screen there are three bits of information to be filled in.
#####Github Project
https://github.com/linuxserver/docker-example
#####Source Code Management
- Repository URL
https://github.com/linuxserver/docker-example
#####Docker Build & Publish
- Repository Name
linuxserver/example
⧸⧸
⧸⧸ #####Then Save
- Click enable
#####Go back into configuration
- Ensure Build when a change is pushed to GitHub is selected. (This has to be done after enabling the project)
##Github
Check that the webhook is correct (It should be automatically filled in)
-
Settings
-
Webhooks & Services
http://ci.linuxserver.io:8080/github-webhook/
##Now you can work on your Github project.
##When finished
-
Make sure the readme.md is updated
-
Get Lonix or Sparklyballs to audit the project. If neither are going to be available within a reasonable time then please speak to IronicBadger.
-
Go back to Jenkins and select your project
-
Click Move
-
Select Jenkins >> Docker >> Released
-
Click Move
- Untick Skip push under Advanced in the Docker Build and Publish Section
Please ensure that the readme.md is copied across to docker hub.
##Drink Beer