Skip to content

Commit

Permalink
chore: switch to common automated workflows from powsybl (#46)
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <[email protected]>
  • Loading branch information
TheMaskedTurtle authored Oct 24, 2024
1 parent 6aa432a commit f234bc2
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 62 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
push:
branches:
- 'main'
pull_request:

jobs:
build:
uses: powsybl/github-ci/.github/workflows/build-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
with:
sonarOrganization: gridsuite
sonarProjectKey: org.gridsuite:user-admin-server
dockerImage: docker.io/gridsuite/user-admin-server
dockerUsername: gridsuiteci
eventType: user_admin_server_updated
secrets:
sonar-token: ${{ secrets.SONAR_TOKEN }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
repo-token: ${{ secrets.REPO_ACCESS_TOKEN }}
61 changes: 0 additions & 61 deletions .github/workflows/maven.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Patch

on:
workflow_dispatch:
inputs:
releaseVersion:
description: version to patch (vX.X)
required: true

jobs:
run-patch:
uses: powsybl/github-ci/.github/workflows/patch-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
with:
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
sonarOrganization: gridsuite
sonarProjectKey: org.gridsuite:user-admin-server
dockerImage: docker.io/gridsuite/user-admin-server
dockerUsername: gridsuiteci
releaseVersion: ${{ github.event.inputs.releaseVersion }}
secrets:
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}

27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
workflow_dispatch:
inputs:
releaseVersion:
description: Release version (vX.X)
required: true
gitReference:
description: SHA of the commit from where to release or branch name
required: true

jobs:
run-release:
uses: powsybl/github-ci/.github/workflows/release-generic.yml@baf0d2ed84b70d359132693880d5e530cd93f168
with:
githubappId: ${{ vars.GRIDSUITE_ACTIONS_APPID }}
sonarOrganization: gridsuite
sonarProjectKey: org.gridsuite:user-admin-server
dockerImage: docker.io/gridsuite/user-admin-server
dockerUsername: gridsuiteci
releaseVersion: ${{ github.event.inputs.releaseVersion }}
gitReference: ${{ github.event.inputs.gitReference }}
secrets:
githubappPrivateKey: ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<groupId>org.gridsuite</groupId>
<artifactId>gridsuite-user-admin-server</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>2.8.0-SNAPSHOT</version>

<packaging>jar</packaging>
<name>User admin server</name>
Expand Down

0 comments on commit f234bc2

Please sign in to comment.