GithubHelp home page GithubHelp logo

pipelines's Introduction

Useful Pipelines Built with GitHub Actions

Usage

  1. Clone this project and copy it to your personal project.
  2. Based on your needs, delete unused pipelines and retain the necessary ones.
  3. Customize the .github/workflows and Dockerfile.

Introduction

This repository contains a GitHub Actions workflow template that automates the process of building different projects (refer to the folders) and pushing the resulting Docker images to Docker Hub. This setup is ideal for continuous integration and deployment (CI/CD) pipelines, ensuring that every change to your codebase is automatically tested, built, and made available as a Docker image.

Prerequisites

Before using this workflow, ensure you have the following:

  • A GitHub account and a repository with a Spring Boot project.
  • A Docker Hub account and a repository where images will be pushed.
  • Project-specific setup and knowledge.

Setup and Configuration

  1. GitHub Secrets:

    • Set up DOCKER_HUB_USERNAME and DOCKER_HUB_TOKEN in your repository's secrets to securely store your Docker Hub credentials. Docker Hub Credentials
  2. Workflow File:

    • The workflow is defined in .github/workflows. View Workflow
    • Customize the workflow according to your project's needs, especially the context, file, and tags fields under the Build and Push job.
  3. Dockerfile:

    • By default, the workflow file allows user inputs to change the working_path, docker_image_name, and platform. Customize it to suit your needs. Dockerfile Customization

Trigger

  • Manual Trigger: By default, trigger the workflow manually from the GitHub Actions tab in your repository.
  • Automatic Trigger: Uncomment the below code in .github/workflows to make the workflow run automatically upon pushing code to the configured branch (default is main).
# push:
#   branches: [main]

pipelines's People

Contributors

renchiliu avatar

Watchers

 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.