Skip to content

s3 based case store #202

s3 based case store

s3 based case store #202

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
- 'release-v**'
tags:
- 'v[0-9]*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Checkout sources
uses: actions/checkout@v1
- name: Build case server with Maven
run: mvn --batch-mode -Pjacoco install
#We only run the sonar analysis on the server directory because we can't push 2 sonar result to the same sonar repository
#TODO add the analysis on the client when the client and server are split into 2 differents github repo
- name: Run SonarCloud analysis on case server
run: >
mvn --batch-mode -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=powsybl-ci-github
-Dsonar.projectKey=com.powsybl:powsybl-case-server
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build Docker image - Main
if: github.ref == 'refs/heads/main'
run: >
mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy
-Djib.httpTimeout=60000
-Djib.to.image=docker.io/powsybl/case-server
-Djib.to.auth.username=powsyblci
-Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image - Tag
if: startsWith(github.ref, 'refs/tags/')
run: >
mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy
-Djib.httpTimeout=60000
-Djib.to.image=docker.io/powsybl/case-server:${GITHUB_REF_NAME#v}
-Djib.to.auth.username=powsyblci
-Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }}
- name: Broadcast update event
if: github.ref == 'refs/heads/main'
uses: gridsuite/broadcast-event@main
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
organizations: gridsuite
event-type: case_server_updated