kind: pipeline type: docker name: default trigger: event: - push steps: - name: build image: mcr.microsoft.com/dotnet/sdk:6.0 volumes: - name: docs path: /docs commands: - cd Sources/ - dotnet restore ApiSolution.sln - dotnet build ApiSolution.sln -c Release --no-restore - dotnet publish ApiSolution.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release - name: tests image: mcr.microsoft.com/dotnet/sdk:6.0 commands: - cd Sources/ - dotnet restore ApiSolution.sln - dotnet test ApiSolution.sln --no-restore depends_on: - build - name: docker-build-and-push image: plugins/docker settings: dockerfile: Sources/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/enzo.jolys/serveur-api username: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD depends_on: - tests when: branch: - master - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/enzo.jolys/serveur-api:latest CONTAINERNAME: r-dash_container COMMAND: create OVERWRITE: true ADMINS: alexandreglenat,mohamedhassani,lilianbreton depends_on: - docker-build-and-push when: branch: - master volumes: - name: docs temp: {}