-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.41 KB
/
ci-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI - master
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
ref: master
- name: Set up JDK 21
uses: actions/setup-java@v4.5.0
with:
java-version: 21
distribution: 'temurin'
- name: Build with Maven
run: mvn --batch-mode -Pdefault,coverage install
- name: Run SonarCloud analysis
run: >
mvn --batch-mode -DskipTests sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=farao-community
-Dsonar.projectKey=farao-community_gridcapa-cse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build and publish Docker image for import corner
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: farao/gridcapa-cse-cc-import-runner
username: farao
password: ${{ secrets.DOCKERHUB_TOKEN }}
dockerfile: ImportDockerfile
- name: Build and publish Docker image for export corner
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: farao/gridcapa-cse-cc-export-runner
username: farao
password: ${{ secrets.DOCKERHUB_TOKEN }}
dockerfile: ExportDockerfile