From the course: Docker for Developers: Create and Manage Docker Containers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Solution: Implementing a GitHub workflow - Docker Tutorial
From the course: Docker for Developers: Create and Manage Docker Containers
Solution: Implementing a GitHub workflow
(bright electronic music) - [Instructor] For this challenge, you are tasked with implementing a GitHub Workflow to build your Docker image when you create a pull request to the main branch. Let's walk through how I'd solve this challenge. First, I told you to use the code branch for the challenge video, which is 08_05. Here, in VS Code, I have that branch selected in source control. In this branch, the Docker Workflow file has been deleted. I asked you to recreate it in the GitHub Workflows folder. I'm going to navigate to GitHub Workflows and create the file docker.image.yml. Next, I said to copy and paste the code from the cheat sheet. I'll go ahead and copy the code here and paste it into the docker.image.yml file. Then I said to update the Docker Workflow file to make it work with your own Docker credentials. At the bottom of the file, I'm going to update the image name with my Docker username. Note that the version…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Integrating Docker into CI/CD pipelines2m 10s
-
Adding a GitHub Actions workflow3m 7s
-
(Locked)
Creating secrets in your GitHub repository2m 36s
-
(Locked)
Running the GitHub workflow2m 40s
-
(Locked)
Challenge: Implementing a GitHub workflow1m 13s
-
(Locked)
Solution: Implementing a GitHub workflow2m 51s
-
(Locked)
-