Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
NotificationsYou must be signed in to change notification settings

intelygenz/monorepo-ci-cd-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a POC for using the action located at:https://github.com/marketplace/actions/action-monorepo-version-tags-lifecycle

Structure

The repository holds a product with two components.

DescriptionLocation
productMain application in python.app folder
product deployHelm chart with two components.metaapp/ folder
componentHello Component python app.hello-world/ folder
componentByeBye Component python app.byebye-world/ folder

Workflows

There are one workflow for each component, one workflow for the product and another one to create release branches.

Component Workflow

The workflow runs on:

on:pull_request:branches:     -main     -"release/v*"paths:     -"hello-world/**/*"     -".github/workflows/hello-*"push:branches:     -main     -"release/v*"paths:     -"hello-world/**/*"     -".github/workflows/hello-*"
JobDescription>Conditional on
quality-checks
Run all quality checks for the component. Linter & Tests.
create-release-tag
Creates a new tag for the component.
if: github.ref == 'refs/heads/main' # only in main branch
create-fix-tag
Creates a new tag for the component.
if: startsWith(github.ref, 'refs/heads/release') # only in release branches
build-release
Create a new build artifact for the component.
if: |  always() &&  (needs.create-release-tag.outputs.tag || needs.create-fix-tag.outputs.tag)

Product Workflow

The workflow runs on:

on:workflow_run:workflows:     -"Hello Component Build"     -"ByeBye Component Build"     -"App Application Build"types:     -completed
JobDescription>Conditional on
[calculate|create]-rc-tag
Calculates or creates the next pre-release tag.
# Just after a workflow completes successfully and the workflows was triggered in main branchif: |  github.event.workflow_run.conclusion == 'success' &&  github.event.workflow_run.head_branch == 'main'
[calculate|create]-fix-tag
Calculates or creates the next fix tag.
# Just after a workflow completes successfully and the workflows was triggered in a release branchif: |  github.event.workflow_run.conclusion == 'success' &&  startsWith(github.event.workflow_run.head_branch, 'release')
release
Release a new version of the product Chart with new versions.
if: |  always() &&  (needs.calculate-rc-tag.outputs.tag ||    needs.calculate-fix-tag.outputs.tag ||    needs.calculate-release-tag.outputs.tag)

New Release Workflow

The workflow runs on:

on:workflow_dispatch:
JobDescription>Conditional on
create-release-branch
Creates a new release branch.
[calculate/create]-release-tag
Calculates the next release tag.
release
Generates a new release of the chart.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp