Commit 8033aac1 authored by Thomas Beermann's avatar Thomas Beermann
Browse files

disable pipeline runs for branches

parent e646ca4f
Pipeline #94936 passed with stages
in 12 minutes and 17 seconds
......@@ -4,7 +4,6 @@ build:
only:
- master
- merge_requests
- branches
- tags
stage: build
script: mvn compile
......@@ -13,7 +12,6 @@ test:
only:
- master
- merge_requests
- branches
- tags
stage: test
script: mvn test
......@@ -22,7 +20,6 @@ code_anaylsis:
only:
- master
- merge_requests
- branches
- tags
stage: code_quality_analysis
script: "mvn -P sonar clean verify sonar:sonar"
......@@ -80,10 +77,11 @@ trigger_deploy_mr:
stage: deploy
image: alpine:3.14.0
before_script:
- apk add curl
- apk add curl jq
script:
- 'curl -X POST -F token=$GITLAB_DESY_TOKEN -F ref=main --form "variables[CI_COMMIT_REF_NAME]=$CI_COMMIT_REF_NAME" --form "variables[CI_MERGE_REQUEST_IID]=$CI_MERGE_REQUEST_IID" --form "variables[CP_COMPONENT]=webapp" $GITLAB_DESY_URL'
- echo "Application will be automatically deployed. After a couple of minutes you can find it at http://webapp-`echo $CI_COMMIT_REF_NAME | tr [:upper:] [:lower:] | tr [:punct:] -`.beermath-test.131.169.234.105.nip.io"
- 'curl -X POST -F token=$GITLAB_DESY_TOKEN -F ref=main --form "variables[CI_COMMIT_REF_NAME]=$CI_COMMIT_REF_NAME" --form "variables[CI_MERGE_REQUEST_IID]=$CI_MERGE_REQUEST_IID" --form "variables[CP_COMPONENT]=webapp" $GITLAB_DESY_URL > /tmp/out.json'
- pipelineurl=$(jq .web_url /tmp/out.json)
- echo "Application will be automatically deployed." && echo "You can check the deployment status here $pipelineurl" && echo "After a couple of minutes you can check the application at http://webapp-`echo $CI_COMMIT_REF_NAME | tr [:upper:] [:lower:] | tr [:punct:] -`.beermath-test.131.169.234.105.nip.io"
trigger_deploy_master:
only:
......@@ -91,6 +89,8 @@ trigger_deploy_master:
stage: deploy
image: alpine:3.14.0
before_script:
- apk add curl
- apk add curl jq
script:
- 'curl -X POST -F token=$GITLAB_DESY_TOKEN -F ref=main --form "variables[CP_COMPONENT]=int" $GITLAB_DESY_URL'
- 'curl -X POST -F token=$GITLAB_DESY_TOKEN -F ref=main --form "variables[CP_COMPONENT]=int" $GITLAB_DESY_URL > /tmp/out.json'
- pipelineurl=$(jq .web_url /tmp/out.json)
- 'echo "Deployment status: $pipelineurl"'
......@@ -6,7 +6,7 @@ An entry point web application for scientific related services from various vend
### Automatic deployments of Merge Requests
Each Merge Request will be automatically deployed to a Kubernetes test cluster so that you can directly see your changes in a live deployment. It will be set up together with the Cerebrum backend with its own database. For Cerebrum the code from its current master branch will be taken. A dynamic URL based on the branch name of the MR will be created. You can find the URL in the output of the last job in the CI/CD pipeline (`trigger_deploy_mr`). When you push new commits to the MR the application will be redeployed.
Each Merge Request will be automatically deployed to a Kubernetes test cluster so that you can directly see your changes in a live deployment. It will be set up together with the Cerebrum backend with its own database. For Cerebrum the code from its current master branch will be taken. The deployment is running in a pipeline at DESY. You can find a link to that pipeline in the output of the last job in the CI/CD pipeline (`trigger_deploy_mr`). There you can also find a url where you access the Cloud Portal when it has been deployed. When you push new commits to the MR the application will be redeployed.
### Running the CI in your fork
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment