kind: pipeline type: docker name: default trigger: event: - push steps: - name: docker-build image: plugins/docker settings: dockerfile: Sources/MyFirstBlazor/Dockerfile context: ./Sources/MyFirstBlazor registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/chloe.mourgand/blazor username: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD when: branch: - master # container deployment - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/chloe.mourgand/blazor CONTAINERNAME: BlazorContainer COMMAND: create OVERWRITE: true depends_on: [docker-build] - name: build image: mcr.microsoft.com/dotnet/sdk:6.0 commands: - cd Sources/MyFirstBlazor/ - dotnet restore MyFirstBlazor.sln - dotnet build MyFirstBlazor.sln -c Release --no-restore - name: generate-and-deploy-docs image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer failure: ignore volumes: - name: docs path: /docs commands: - /entrypoint.sh when: branch: - master depends_on: [ build ] # docker image build #- name: docker-build-and-push # image: plugins/docker # settings: # dockerfile: Sources/MyFirstBlazor/Dockerfile # context: ./Sources/MyFirstBlazor # registry: hub.codefirst.iut.uca.fr # repo: hub.codefirst.iut.uca.fr/chloe.mourgand/blazor_project # username: # from_secret: SECRET_REGISTRY_USERNAME # password: # from_secret: SECRET_REGISTRY_PASSWORD volumes: - name: docs temp: {}