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

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

removing some duplicated code.

parent ced7b3aa
No related branches found
No related tags found
No related merge requests found
Pipeline #229454 passed
This commit is part of merge request !112. Comments created here will be created in the context of that merge request.
......@@ -49,24 +49,6 @@ run-test:
# Create 'resource_group', to avoid collision when executing many pipelines at the same time.
resource_group: test-group
deliver-latest-job:
stage: deliver
variables:
IMAGE_TAG: "latest"
script:
- ansible-playbook ansible/deliver.yml
rules:
- 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:
- if: $CI_COMMIT_TAG
deliver-testing-branch-job:
stage: deliver
variables:
......@@ -74,6 +56,14 @@ deliver-testing-branch-job:
script:
- ansible-playbook ansible/deliver.yml
rules:
# deliver latest
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables: # Override IMAGE_TAG variable
IMAGE_TAG: "latest"
# deliver tagged image
- if: $CI_COMMIT_TAG
variables: # Override IMAGE_TAG variable
IMAGE_TAG: $CI_COMMIT_TAG
# For custom Testing images, keep standard, naming your branch as v4.1someSquadNameRef
- if: $CI_COMMIT_BRANCH == 'develop'
- if: $CI_COMMIT_BRANCH =~ /^v3*/
......
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