Code development platform for open source projects from the European Union institutions

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

removing some duplicated code.

parent ced7b3aa
No related branches found
No related tags found
2 merge requests!136Develop,!112Removing some duplicated code.
Pipeline #230028 passed
......@@ -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.
Finish editing this message first!
Please register or to comment