Skip to content

Commit 35bcaae

Browse files
chore: switch to common automated workflows from powsybl (#108)
Signed-off-by: Joris Mancini <[email protected]>
1 parent fe01aa8 commit 35bcaae

File tree

5 files changed

+73
-62
lines changed

5 files changed

+73
-62
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
12+
with:
13+
sonarOrganization: gridsuite
14+
sonarProjectKey: org.gridsuite:dynamic-mapping-server
15+
dockerImage: docker.io/gridsuite/dynamic-mapping-server
16+
dockerUsername: gridsuiteci
17+
eventType: dynamic_mapping_server_updated
18+
secrets:
19+
sonar-token: ${{ secrets.SONAR_TOKEN }}
20+
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
21+
repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}

.github/workflows/maven.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/patch.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
13+
with:
14+
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
15+
sonarOrganization: gridsuite
16+
sonarProjectKey: org.gridsuite:dynamic-mapping-server
17+
dockerImage: docker.io/gridsuite/dynamic-mapping-server
18+
dockerUsername: gridsuiteci
19+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
20+
secrets:
21+
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
22+
sonar-token: ${{ secrets.SONAR_TOKEN }}
23+
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
24+

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
16+
with:
17+
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
18+
sonarOrganization: gridsuite
19+
sonarProjectKey: org.gridsuite:dynamic-mapping-server
20+
dockerImage: docker.io/gridsuite/dynamic-mapping-server
21+
dockerUsername: gridsuiteci
22+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
23+
gitReference: ${{ github.event.inputs.gitReference }}
24+
secrets:
25+
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
26+
sonar-token: ${{ secrets.SONAR_TOKEN }}
27+
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<groupId>org.gridsuite</groupId>
2020
<artifactId>gridsuite-dynamic-mapping-server</artifactId>
21-
<version>1.0.0-SNAPSHOT</version>
21+
<version>2.8.0-SNAPSHOT</version>
2222

2323
<packaging>jar</packaging>
2424
<name>Dynamic Mapping server</name>

0 commit comments

Comments
 (0)