Skip to content
Snippets Groups Projects
Commit 21942bd0 authored by François Agneray's avatar François Agneray
Browse files

Update gitlab-ci (client, server, services)

parent 09a10266
No related branches found
No related tags found
1 merge request!29Develop
Pipeline #5963 failed
Pipeline: anis-next

#5966

    Pipeline: anis-next

    #5965

      Pipeline: anis-next

      #5964

        ......@@ -17,6 +17,7 @@ install_dependencies:
        - node_modules
        policy: pull-push
        script:
        - cd client
        - yarn install
        sonar_scanner:
        ......@@ -28,6 +29,7 @@ sonar_scanner:
        - node_modules
        policy: pull
        script:
        - cd client
        - sonar-scanner
        -Dsonar.projectKey=anis-next
        -Dsonar.sources=src
        ......@@ -46,6 +48,7 @@ build:
        - node_modules
        policy: pull
        script:
        - cd client
        - yarn global add @angular/cli@latest
        - ng build
        artifacts:
        ......@@ -57,6 +60,7 @@ dockerize:
        stage: dockerize
        cache: {}
        script:
        - cd client
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/client:latest || true
        - docker build --cache-from $CI_REGISTRY/anis/anis-next/client:latest -t $CI_REGISTRY/anis/anis-next/client:latest .
        ......
        ......@@ -12,6 +12,7 @@ install_dependencies:
        image: jakzal/phpqa:php8.0
        stage: install_dependencies
        script:
        - cd server
        - composer install --ignore-platform-reqs
        cache:
        key: ${CI_COMMIT_REF_SLUG}
        ......@@ -28,6 +29,7 @@ test:
        - vendor
        policy: pull
        script:
        - cd server
        - phpdbg
        -qrr ./vendor/bin/phpunit
        --bootstrap ./tests/bootstrap.php
        ......@@ -43,6 +45,7 @@ sonar_scanner:
        image: sonarsource/sonar-scanner-cli:latest
        stage: sonar
        script:
        - cd server
        - sonar-scanner
        -Dsonar.projectKey=anis-next
        -Dsonar.sources=src
        ......@@ -62,6 +65,7 @@ dockerize:
        policy: pull
        dependencies: []
        script:
        - cd server
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/server:latest || true
        - docker build --cache-from $CI_REGISTRY/anis/anis-next/server:latest -t $CI_REGISTRY/anis/anis-next/server:latest .
        ......
        ......@@ -10,6 +10,7 @@ dockerize:
        stage: dockerize
        cache: {}
        script:
        - cd services
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/services:latest || true
        - docker build --cache-from $CI_REGISTRY/anis/anis-next/services:latest -t $CI_REGISTRY/anis/anis-next/services:latest .
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment