Code Monkey home page Code Monkey logo

github-actions-gke's Introduction

GitHub Actions GKE

This is a sample repository which describes how to set up a GiHub Actions workflow to deploy a simple Spring Boot Application to Google Kubernetes Engine.

Workflow

In this we have set up the following workflow

  1. Checking out the Repository
  2. Setting up the Environment for Building Application
  3. Building the Application
  4. Adding Google Cloud CLI to Environment
  5. Setting up Gcloud CLI
  6. Configuring Docker
  7. Building the Docker Image
  8. Publishing the Docker Image to Google Container Registry
  9. Setting up Kustomize
  10. Deploying the Image to Google Kubernetes Engine

Steps

  1. Create your Spring Boot Application.
  2. Add GKE_PROJECT and GKE_SA_KEY to your repository.
  3. Dockerize your Application using Dockerfile.
  4. Setup pipelines.yaml file in .github/workflow folder.
  5. Add Kustomzation.yaml file
  6. Add deployment.yaml and Service.yaml file
  7. Push the changes to github repo

This is how you can set up the GitHub Actions and trigger on each push to the repository the workflow will get triggered and if success the code will be published to GKE.

Tutorial Link: https://youtu.be/_Vy631QpfI0

github-actions-gke's People

Contributors

aeradron-code avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.