Skip to content

Commit

Permalink
chore: use common powsybl release workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
  • Loading branch information
TheMaskedTurtle committed Oct 22, 2024
1 parent 6c675b6 commit 79b0928
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 61 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: gridsuite_spreadsheet-config-server
dockerImage: docker.io/gridsuite/spreadsheet-config-server
dockerUsername: gridsuiteci
eventType: spreadsheet_config_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: gridsuite_spreadsheet-config-server
dockerImage: docker.io/gridsuite/spreadsheet-config-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: gridsuite_spreadsheet-config-server
dockerImage: docker.io/gridsuite/spreadsheet-config-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 }}

0 comments on commit 79b0928

Please sign in to comment.