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: ...@@ -17,6 +17,7 @@ install_dependencies:
        - node_modules - node_modules
        policy: pull-push policy: pull-push
        script: script:
        - cd client
        - yarn install - yarn install
        sonar_scanner: sonar_scanner:
        ...@@ -28,6 +29,7 @@ sonar_scanner: ...@@ -28,6 +29,7 @@ sonar_scanner:
        - node_modules - node_modules
        policy: pull policy: pull
        script: script:
        - cd client
        - sonar-scanner - sonar-scanner
        -Dsonar.projectKey=anis-next -Dsonar.projectKey=anis-next
        -Dsonar.sources=src -Dsonar.sources=src
        ...@@ -46,6 +48,7 @@ build: ...@@ -46,6 +48,7 @@ build:
        - node_modules - node_modules
        policy: pull policy: pull
        script: script:
        - cd client
        - yarn global add @angular/cli@latest - yarn global add @angular/cli@latest
        - ng build - ng build
        artifacts: artifacts:
        ...@@ -57,6 +60,7 @@ dockerize: ...@@ -57,6 +60,7 @@ dockerize:
        stage: dockerize stage: dockerize
        cache: {} cache: {}
        script: script:
        - cd client
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/client:latest || true - 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 . - 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: ...@@ -12,6 +12,7 @@ install_dependencies:
        image: jakzal/phpqa:php8.0 image: jakzal/phpqa:php8.0
        stage: install_dependencies stage: install_dependencies
        script: script:
        - cd server
        - composer install --ignore-platform-reqs - composer install --ignore-platform-reqs
        cache: cache:
        key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
        ...@@ -28,6 +29,7 @@ test: ...@@ -28,6 +29,7 @@ test:
        - vendor - vendor
        policy: pull policy: pull
        script: script:
        - cd server
        - phpdbg - phpdbg
        -qrr ./vendor/bin/phpunit -qrr ./vendor/bin/phpunit
        --bootstrap ./tests/bootstrap.php --bootstrap ./tests/bootstrap.php
        ...@@ -43,6 +45,7 @@ sonar_scanner: ...@@ -43,6 +45,7 @@ sonar_scanner:
        image: sonarsource/sonar-scanner-cli:latest image: sonarsource/sonar-scanner-cli:latest
        stage: sonar stage: sonar
        script: script:
        - cd server
        - sonar-scanner - sonar-scanner
        -Dsonar.projectKey=anis-next -Dsonar.projectKey=anis-next
        -Dsonar.sources=src -Dsonar.sources=src
        ...@@ -62,6 +65,7 @@ dockerize: ...@@ -62,6 +65,7 @@ dockerize:
        policy: pull policy: pull
        dependencies: [] dependencies: []
        script: script:
        - cd server
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/server:latest || true - 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 . - docker build --cache-from $CI_REGISTRY/anis/anis-next/server:latest -t $CI_REGISTRY/anis/anis-next/server:latest .
        ......
        ...@@ -10,6 +10,7 @@ dockerize: ...@@ -10,6 +10,7 @@ dockerize:
        stage: dockerize stage: dockerize
        cache: {} cache: {}
        script: script:
        - cd services
        - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
        - docker pull $CI_REGISTRY/anis/anis-next/services:latest || true - 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 . - 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