Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Continuous Deployment

on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Select the environment to deploy to
default: Staging
options:
- Staging
- Production

permissions:
contents: write
packages: write
repository-projects: write
id-token: write

jobs:

version:
uses: codedesignplus/workflows/.github/workflows/release.yaml@main
with:
project-name: CodeDesignPlus.Net.Microservice.Modules
microservice-name: ms-modules
environment: ${{ github.event.inputs.environment }}
secrets: inherit

container:
needs: version
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/dev' }}
uses: codedesignplus/workflows/.github/workflows/container-image.yaml@main
with:
project-name: CodeDesignPlus.Net.Microservice.Modules
microservice-name: ms-modules
environment: ${{ github.event.inputs.environment }}
secrets: inherit

deploy:
needs: container
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/dev' }}
uses: codedesignplus/workflows/.github/workflows/deploy-self-host.yaml@main
with:
project-name: CodeDesignPlus.Net.Microservice.Modules
microservice-name: ms-modules
enable-rest: true
enable-grpc: false
enable-worker: false
environment: ${{ github.event.inputs.environment }}
secrets: inherit
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration

on:
push:
branches:
- main
- rc
- dev
- feature/*

permissions:
contents: write
packages: write
repository-projects: write

jobs:
build:
uses: codedesignplus/workflows/.github/workflows/build-microservice.yaml@main
with:
project-name: CodeDesignPlus.Net.Microservice.Modules
microservice-name: ms-modules
environment: Development
secrets: inherit

sonarqube:
needs: build
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/dev' }}
uses: codedesignplus/workflows/.github/workflows/sonarqube.yaml@main
with:
project-name: CodeDesignPlus.Net.Microservice.Modules
microservice-name: ms-modules
environment: Development
secrets: inherit