Skip to content

Commit f692e44

Browse files
committed
add github actions
Signed-off-by: Thang PHAM <[email protected]>
1 parent d01210f commit f692e44

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
uses: powsybl/github-ci/.github/workflows/build-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
12+
with:
13+
dockerImage: docker.io/gridsuite/dynamic-margin-calculation-server
14+
dockerUsername: gridsuiteci
15+
eventType: dynamic_margin_calculation_server_updated
16+
secrets:
17+
sonar-token: ${{ secrets.SONAR_TOKEN }}
18+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
19+
repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}

.github/workflows/patch.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Patch
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: version to patch (vX.X)
8+
required: true
9+
10+
jobs:
11+
run-patch:
12+
uses: powsybl/github-ci/.github/workflows/patch-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
13+
with:
14+
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
15+
dockerImage: docker.io/gridsuite/dynamic-margin-calculation-server
16+
dockerUsername: gridsuiteci
17+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
18+
secrets:
19+
VERSIONBUMP_GHAPP_PRIVATE_KEY: ${{ secrets.VERSIONBUMP_GHAPP_PRIVATE_KEY }}
20+
sonar-token: ${{ secrets.SONAR_TOKEN }}
21+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
22+

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releaseVersion:
7+
description: Release version (vX.X)
8+
required: true
9+
gitReference:
10+
description: SHA of the commit from where to release or branch name
11+
required: true
12+
13+
jobs:
14+
run-release:
15+
uses: powsybl/github-ci/.github/workflows/release-backend-app-generic.yml@69b162754c0728d9aeb2ea568eaf47f28f60fafb
16+
with:
17+
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
18+
dockerImage: docker.io/gridsuite/dynamic-margin-calculation-server
19+
dockerUsername: gridsuiteci
20+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
21+
gitReference: ${{ github.event.inputs.gitReference }}
22+
secrets:
23+
VERSIONBUMP_GHAPP_PRIVATE_KEY: ${{ secrets.VERSIONBUMP_GHAPP_PRIVATE_KEY }}
24+
sonar-token: ${{ secrets.SONAR_TOKEN }}
25+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)