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 LeagueOfLegends.sln - dotnet build LeagueOfLegends.sln -c Release --no-restore - dotnet publish LeagueOfLegends.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 LeagueOfLegends.sln - dotnet test LeagueOfLegends.sln --no-restore depends_on: [build] - name: generate-and-deploy-docs image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer failure: ignore volumes: - name: docs path: /docs commands: #- cd Documentation/doxygen #- doxygen Doxyfile - /entrypoint.sh when: branch: - master depends_on: [ build ] # container deployment - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/my.login/my_repository:latest CONTAINERNAME: my_container_name COMMAND: create OVERWRITE: true - 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/Api-LOL username: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD depends_on: - tests when: branch: - main - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/enzo.jolys/Api-LOL:latest CONTAINERNAME: Api-LOL COMMAND: create OVERWRITE: true ADMINS: enzojolys depends_on: - docker-build-and-push when: branch: - main volumes: - name: docs temp: {}