Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 69538868 authored by Diego MENDEZ's avatar Diego MENDEZ
Browse files

:twisted_rightwards_arrows: Merge branch 'feature/duplicated_ci_code' into 'develop'

Removing some duplicated code.

See merge request !112
parents ced7b3aa d4d63f8c
No related branches found
No related tags found
2 merge requests!136Develop,!112Removing some duplicated code.
Pipeline #230032 passed
Pipeline: Netbox Plugins

#230035

    ......@@ -49,32 +49,22 @@ run-test:
    # Create 'resource_group', to avoid collision when executing many pipelines at the same time.
    resource_group: test-group
    deliver-latest-job:
    deliver-image-job:
    stage: deliver
    variables:
    IMAGE_TAG: "latest"
    IMAGE_TAG: "testing-${CI_COMMIT_BRANCH}"
    script:
    - ansible-playbook ansible/deliver.yml
    rules:
    # deliver latest
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    deliver-tagged-job:
    stage: deliver
    variables:
    IMAGE_TAG: $CI_COMMIT_TAG
    script:
    - ansible-playbook ansible/deliver.yml
    rules:
    variables: # Override IMAGE_TAG variable
    IMAGE_TAG: "latest"
    # deliver tagged image
    - if: $CI_COMMIT_TAG
    deliver-testing-branch-job:
    stage: deliver
    variables:
    IMAGE_TAG: "testing-${CI_COMMIT_BRANCH}"
    script:
    - ansible-playbook ansible/deliver.yml
    rules:
    # For custom Testing images, keep standard, naming your branch as v4.1someSquadNameRef
    variables: # Override IMAGE_TAG variable
    IMAGE_TAG: $CI_COMMIT_TAG
    # For custom Testing images, keep standard, naming your branch as v4.1-someSquadNameRef
    - if: $CI_COMMIT_BRANCH == 'develop'
    - if: $CI_COMMIT_BRANCH =~ /^v3*/
    - if: $CI_COMMIT_BRANCH =~ /^v4*/
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment