diff --git a/.drone.yml b/.drone.yml index dd32bbc..8ccf531 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,7 +60,27 @@ steps: branch: - master depends_on: [ build ] + # docker image build + - name: docker-build-and-push + image: plugins/docker + settings: + dockerfile: Sources/APILOL/Dockerfile + context: Sources/ + registry: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 + repo: hub.codefirst.iut.uca.fr/lucas.delanier/lolproject + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + # container deployment + - name: deploy-container + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/lucas.delanier/lolproject:latest + CONTAINERNAME: container_lol + COMMAND: create + OVERWRITE: true volumes: - name: docs - temp: {} + temp: {} \ No newline at end of file