Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch to common automated workflows from powsybl #46

Merged
merged 1 commit into from
Oct 24, 2024
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
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
Loading