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

Add gitlab-ci for tasks

parent 6adf4e49
No related branches found
No related tags found
1 merge request!72Develop
Pipeline #7997 passed
Pipeline: anis-next

#7998

    ...@@ -31,5 +31,16 @@ anis-services: ...@@ -31,5 +31,16 @@ anis-services:
    only: only:
    changes: changes:
    - services/**/* - services/**/*
    refs:
    - develop
    anis-tasks:
    stage: trigger-child-pipelines
    trigger:
    include: tasks/.gitlab-ci.yml
    strategy: depend
    only:
    changes:
    - tasks/**/*
    refs: refs:
    - develop - develop
    \ No newline at end of file
    stages:
    - dockerize
    variables:
    VERSION: "3.7"
    SONARQUBE_URL: https://sonarqube.lam.fr
    dockerize:
    image: docker:stable
    stage: dockerize
    cache: {}
    script:
    - cd tasks
    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
    - docker pull $CI_REGISTRY/anis/anis-next/tasks:latest || true
    - docker build --cache-from $CI_REGISTRY/anis/anis-next/tasks:latest -t $CI_REGISTRY/anis/anis-next/tasks:latest .
    - docker push $CI_REGISTRY/anis/anis-next/tasks: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