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

Loading…
Cancel
Save