Skip to content
Snippets Groups Projects
Commit cb205cc1 authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

first try

parent eb77a837
No related branches found
No related tags found
No related merge requests found
name: 'Java CI Build' name: 'Java CI Build'
description: 'Build a Java CI project with maven and Docker' description: 'Build a Java CI project with maven and Docker'
inputs:
GITHUBLOGIN:
description: 'A Github login'
required: true
GITHUBPASSWORD:
description: 'A Github PAT'
required: true
DOCKER_USERNAME:
description: 'A Docker username'
required: true
DOCKER_PASSWORD:
description: 'A Docker token'
required: true
SONAR_URL:
description: 'A sonar URL'
required: true
SONAR_TOKEN:
description: 'A sonar token'
required: true
runs: runs:
using: "composite" using: "composite"
steps: steps:
...@@ -17,7 +37,7 @@ runs: ...@@ -17,7 +37,7 @@ runs:
if: ${{ success() }} if: ${{ success() }}
with: with:
github-token: ${{ github.token }} # this will use the runner's token. github-token: ${{ github.token }} # this will use the runner's token.
ms-teams-webhook-uri: ${{ secrets.MSTEAMS_WEBHOOK }} ms-teams-webhook-uri: ${{ input.MSTEAMS_WEBHOOK }}
notification-summary: Build and Deploy success. notification-summary: Build and Deploy success.
notification-color: 28a745 notification-color: 28a745
timezone: Europe/Paris timezone: Europe/Paris
...@@ -26,7 +46,7 @@ runs: ...@@ -26,7 +46,7 @@ runs:
if: ${{ failure() }} if: ${{ failure() }}
with: with:
github-token: ${{ github.token }} # this will use the runner's token. github-token: ${{ github.token }} # this will use the runner's token.
ms-teams-webhook-uri: ${{ secrets.MSTEAMS_WEBHOOK }} ms-teams-webhook-uri: ${{ input.MSTEAMS_WEBHOOK }}
notification-summary: Build and Deploy failure. notification-summary: Build and Deploy failure.
notification-color: dc3545 notification-color: dc3545
timezone: Europe/Paris timezone: Europe/Paris
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment