kind: pipeline type: docker name: depotDeCedric trigger: event: - push steps: - name: Setup image: jitesoft/phpunit:latest commands: - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - composer install - name: test image: jitesoft/phpunit:latest commands: - vendor/bin/phpunit --filter "/(testCallWebService)( .*)?$/" ./common/Tests/WS_UtilTest.php - vendor/bin/phpunit --filter "/(testAllKeysToUppercase)( .*)?$/" ./common/Tests/WS_UtilTest.php depends_on: [Setup] - name: sonar image: sonarsource/sonar-scanner-cli commands: - sonar-scanner -Dsonar.projectKey=CICD_WebPage_Louis_Duf -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.sources=. -Dsonar.host.url=https://codefirst.iut.uca.fr/sonar settings: sonar_token: from_secret: SECRET_SONAR_LOGIN depends_on: [Setup] - name: hadolint image: hadolint/hadolint:latest-alpine commands: - hadolint Dockerfile depends_on: - test - name: bluid-docker-image image: plugins/docker settings: dockerfile: Dockerfile context: . registry: hub.codefirst.iut.uca.fr repo: hub.codefirst.iut.uca.fr/louis.dufour/cicd_webpage username: from_secret: SECRET_REGISTRY_USERNAME_CODEFIRST password: from_secret: SECRET_REGISTRY_PASSWORD_CODEFIRST depends_on: - hadolint - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/louis.dufour/cicd_webpage CONTAINERNAME: phpContainerLouis COMMAND: create #OVERWRITE: true CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: louis_duf CODEFIRST_CLIENTDRONE_ENV_LIBRARY_URL: https://codefirst.iut.uca.fr/containers/louisdufour-ApiOpenLibrary/ CODEFIRST_CLIENTDRONE_ENV_BACKEND_URL: https://codefirst.iut.uca.fr/containers/louisdufour-ApiOpenLibrary/ depends_on: - bluid-docker-image