Skip to content

Commit

Permalink
feat(ci-cd): add release please pipeline and config
Browse files Browse the repository at this point in the history
  • Loading branch information
WarriorsSami committed Sep 21, 2024
1 parent 04b529c commit 2e2d42f
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/anubis-eval-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- name: Test
run: cargo nextest run --all-features --profile ci

deploy_to_ghcr:
deploy-to-ghcr:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dapr-config-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ env:
BUILD_CONTEXT: dapr

jobs:
deploy_to_ghcr:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/enki-problems-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
- name: Test
run: dotnet test -e DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

deploy_to_ghcr:
deploy-to-ghcr:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/eval-lb-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ env:
BUILD_CONTEXT: anubis-eval/eval-lb

jobs:
deploy_to_ghcr:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hermes-tests-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
- name: Test
run: dart test

deploy_to_ghcr:
deploy-to-ghcr:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/odin-gateway-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ env:
BUILD_CONTEXT: odin-gateway

jobs:
deploy_to_ghcr:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/quetzalcoatl-auth-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
# - name: Test
# run: dotnet test -e ASPNETCORE_ENVIRONMENT=Testing "Tests.Integration/Tests.Integration.csproj"

deploy_to_ghcr:
deploy-to-ghcr:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}

deploy_to_docker_hub:
deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Please

on:
push:
branches:
- develop

permissions:
contents: read
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
9 changes: 9 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"quetzalcoatl": "2.0.0",
"enki": "2.0.0",
"hermes": "2.0.0",
"anubis": "2.0.0",
"odin": "2.0.0",
"dapr": "2.0.0",
"eval-lb": "2.0.0"
}
37 changes: 37 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"include-component-in-tag": true,
"include-v-in-tag": true,
"tag-separator": "@",
"separate-pull-requests": true,
"packages": {
"quetzalcoatl": {
"path": "quetzalcoatl-auth",
"release-type": "simple"
},
"enki": {
"path": "enki-problems",
"release-type": "simple"
},
"hermes": {
"path": "hermes-tests",
"release-type": "dart"
},
"anubis": {
"path": "anubis-eval",
"release-type": "rust"
},
"odin": {
"path": "odin-gateway",
"release-type": "simple"
},
"dapr": {
"path": "dapr",
"release-type": "simple"
},
"eval-lb": {
"path": "anubis-eval/eval-lb",
"release-type": "simple"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 2e2d42f

Please sign in to comment.