Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is failing Details

pull/1/head
Théo DUPIN 2 years ago
parent f41e4f1119
commit 231e33bdef

@ -13,15 +13,16 @@ steps:
- dotnet restore LeagueOfLegends.sln - dotnet restore LeagueOfLegends.sln
- dotnet build LeagueOfLegends.sln -c Release --no-restore - dotnet build LeagueOfLegends.sln -c Release --no-restore
- dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
depends_on: []
- name: tests - name: tests
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
- dotnet restore LeagueOfLegends.sln - dotnet restore LeagueOfLegends.sln
- dotnet test LeagueOfLegends.sln --no-restore - dotnet test LeagueOfLegends.sln --no-restore
depends_on: [build] depends_on: [build]
- name: code-analysis - name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7
commands: commands:
- dotnet restore LeagueOfLegends.sln - dotnet restore LeagueOfLegends.sln
@ -33,27 +34,25 @@ steps:
- dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN}
secrets: [ SECRET_SONAR_LOGIN ] secrets: [ SECRET_SONAR_LOGIN ]
settings: settings:
# accessible en ligne de commande par $${PLUGIN SONAR HOST}
sonar_host: https://codefirst.iut.uca.fr/sonar/ sonar_host: https://codefirst.iut.uca.fr/sonar/
# accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN}
sonar_token: sonar_token:
from_secret: SECRET_SONAR_LOGIN from_secret: SECRET_SONAR_LOGIN
depends on: [tests] depends_on: [tests]
# docker image build
- name: docker-build-and-push - name: docker-build-and-push
image: plugins/docker image: plugins/docker
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
context: Web_Api context: Web_Api
registry: hub.codefirst.iut.uca.fr registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/theo.dupin/Entity_Framework_Theo repo: hub.codefirst.iut.uca.fr/theo.dupin/Entity_Framework_Theo
username: username:
from_secret: SECRET_REGISTRY_USERNAME from_secret: SECRET_REGISTRY_USERNAME
password: password:
from_secret: SECRET_REGISTRY_PASSWORD from_secret: SECRET_REGISTRY_PASSWORD
depends_on: [code-analysis]
volumes: volumes:
- name: docs - name: docs
temp: {} temp: {}

Loading…
Cancel
Save