Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FemtechConf2022-cicd-with-githubactions.pdf

Bukola
October 10, 2022

 FemtechConf2022-cicd-with-githubactions.pdf

Bukola

October 10, 2022
Tweet

More Decks by Bukola

Other Decks in Technology

Transcript

  1. Integrating all your code changes into the main branch of

    a shared source code repository early and often Automatically deploy applications - eliminating the need for human intervention Continuous Integration Continuous Delivery /Deployment
  2. GitHub Actions is a continuous integration and continuous delivery (CI/CD)

    platform that allows you to automate your deployment pipeline.
  3. CICD WITH GITHUB ACTIONS CICD with Github actions offers workflow

    that can : Build the code In your repository Run your test Can run on Github-hosted virtual machine Or on a machine you host yourself Github Actions
  4. COMPONENTS OF GITHUB ACTIONS Workflows Events A specific activity in

    a repo that triggers a workflow run Jobs Set of steps in a workflow Actions A custom application for GHA platforms for repeated task Defined by yaml files in .github/workflows dir in repository Runners The server that runs the workflow
  5. A workflow is a configurable automated process that will run

    one or more jobs Workflows are defined in the .github/workflows directory in a repository WORKFLOWS
  6. A job is a set of steps in a workflow

    that execute on the same runner. JOBS
  7. An action is a custom application that performs a complex

    but frequently repeated task. ACTIONS
  8. A runner is a server that runs your workflows when

    they're triggered.. GitHub provides Ubuntu Linux, Microsoft Windows, and macOS runners to run your workflows. RUNNERS
  9. KEY ADVANTAGES Community-powered reusable workflows Simplicity CICD pipeline setup is

    simple Responds to any webhook on Github Webhook Reusable Workflows
  10. Deploying Go sample App with Github Actions Set up a

    workflow to build docker image, push to Google registry and deploy to kubernetes DEMO Lorem Ipsum Dolor Sit Amet - Lorem Ipsum Dolor Sit 300 views #loremipsum #loremipsum 0:50 / 2:50
  11. CREATING A SAMPLE WORKFLOW Create the yaml file Step 3

    Clone the repository you will be using for the deployment Step 1 Create workflow directory Step 2 Confirm your deployment status Step 6 Commit the changes to Github Step 4 Monitor the progress of the workflow Step 5
  12. CREDITS: This presentation template was created by Slidesgo, incluiding icons

    by Flaticon, and infographics & images by Freepik. THANKS! Do you have any questions? @bukecious bukolajohnson.com