Better Programming

Advice for programmers.

Follow publication

Member-only story

CI/CD for Docker Using GitHub Actions

IspeakCode
Better Programming
Published in
5 min readOct 14, 2019

--

Image credits- Docker, Unsplash

GitHub Actions, the automation tool to add CI/CD workflow for projects on GitHub, is currently available in beta.

Although the public release is still more than a month away, on November 13, GitHub marketplace has already seen a good number of actions to help with CI/CD for almost all major platforms.

Note: In this article, we’ll talk about the various steps to integrate the CI/CD workflow in a project that uses Docker. We’ll be focusing on GitHub actions configurations in projects that use docker — the basics of what Docker is and its uses are out of scope here.

Prerequisites

This tutorial assumes that you know how docker works and have a project that uses it. Make sure that you have the Dockerfile in the root folder of your project. The example project used here is a very basic project that has just one Python file. The complete code can be downloaded from the github repository.

If you haven’t done so already, sign up for GitHub Actions public beta here.

First, we will go through the basic steps required to configure GitHub actions in a project. This is common for all projects running on any platform.

1. Creating a Project and Add Workflow file

The first obvious step is to create a GitHub project and connect your Flutter project with the repository.

If you have successfully completed the sign-up process for Actions beta, you should be able to see a new Actions tab for your project right next to pull requests.

Actions tab in the repository.

GitHub provides predefined workflows for many of the most popular platforms out there and…

--

--

IspeakCode
IspeakCode

Written by IspeakCode

I Speak Code, binge thrillers, and seek adventures while following food, sports, fashion, and science.

Responses (1)

Write a response