diff --git a/.drone.yml b/.drone.yml index ec6bf23..f3223ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,7 @@ steps: - name: compilation image: maven:3-openjdk-11 commands: - - mvn install + - mvn package @@ -25,10 +25,10 @@ trigger: - push steps: - - name: hadolint - image: hadolint/hadolint:latest-alpine - commands: - - hadolint Sources/Dockerfile + #- name: hadolint + # image: hadolint/hadolint:latest-alpine + #commands: + # - hadolint Sources/Dockerfile - name: docker-image image: plugins/docker @@ -36,12 +36,16 @@ steps: dockerfile: Sources/Dockerfile context: Sources registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/AllDev/API + repo: hub.codefirst.iut.uca.fr/lucas.evard/api + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: - IMAGENAME: hub.codefirst.iut.uca.fr/AllDev/API:latest + IMAGENAME: hub.codefirst.iut.uca.fr/lucas.evard/api:latest CONTAINERNAME: api COMMAND: create OVERWRITE: true