From the course: Docker: Continuous Delivery
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Connecting Jenkins to GitHub securely - Docker Tutorial
From the course: Docker: Continuous Delivery
Connecting Jenkins to GitHub securely
- [Instructor] Now that we've got a good set up for building our builder and building our product. Let's go ahead and automate this process and have Jenkins and GitHub do the work for us. Let's start off by making ourselves a new GitHub project to store our code. I'll call it, example-webapp. And back here in the terminal, we're going to go ahead and add that Git registry to our project. So, I'm going to begin by running git init. Just to get things started. Okay, now we have a Git repo. Now I'm going to run git add . to add all the files to our repo. Okay. Then, git commit. And I'm going to type -m just so I don't have to open an editor and close it again. Getting started for the commit message. Okay, we added all the files. Now, let's attach this to our GitHub project. Git remote add origin, that's the traditional name to use. Git@ github.com:, your GitHub username here, mine is thearthur/…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.