Skip to content

Commit

Permalink
Merge branch 'ci/56627-no-review' into 'master'
Browse files Browse the repository at this point in the history
ci: [#56627] remove review apps

See merge request rammearkitektur/os2mo-helm-chart!253
  • Loading branch information
caspervk committed Jun 26, 2023
2 parents f62499e + b3d771f commit edcdf44
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions .gitlab-ci.yml
Expand Up @@ -12,10 +12,6 @@ variables:
RELEASE_REGISTRY: index.docker.io
RELEASE_REGISTRY_NAMESPACE: ${RELEASE_REGISTRY}/magentaaps

REVIEW_URL: https://review-chart-mr$CI_MERGE_REQUEST_IID.moraci.magentahosted.dk
# Would be nice to include tag here, but Docker Hub doesn't support 🤷‍♀️
REVIEW_CHART_URL: ${RELEASE_REGISTRY}/magentaaps/os2mo-helm-chart

cache:
key: "${CI_JOB_NAME}"
paths:
Expand All @@ -26,7 +22,6 @@ cache:
stages:
- lint
- test
- review
- release
- deploy

Expand Down Expand Up @@ -142,49 +137,6 @@ pages:
rules:
- if: $CI_COMMIT_TAG =~ /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/

# Review Stage
##############
Deploy Review:
stage: review
needs: []
image: debian:bullseye
variables:
GIT_STRATEGY: none # We do not need the source code
tags:
- deploy
before_script:
- apt-get update && apt-get install -y curl jq
script:
- curl --silent --fail --request POST --user $CONFIG_UPDATER_REVIEW_APP_USERNAME:$CONFIG_UPDATER_REVIEW_APP_PASSWORD "https://config-updater.magentahosted.dk/os2mo/review-apps/chart/deploy?mr_id=$CI_MERGE_REQUEST_IID&commit_sha=$CI_COMMIT_SHA"
- until curl "${REVIEW_URL}/version/"; do sleep 5; done
environment:
name: review/$CI_MERGE_REQUEST_IID
url: $REVIEW_URL
on_stop: Stop Review
auto_stop_in: 1 week
rules:
- if: $CI_MERGE_REQUEST_ID
when: manual
allow_failure: true

Stop Review:
stage: review
needs: []
image: curlimages/curl:7.81.0
variables:
GIT_STRATEGY: none # We do not need the source code
tags:
- deploy
script:
- curl --silent --fail --request POST --user $CONFIG_UPDATER_REVIEW_APP_USERNAME:$CONFIG_UPDATER_REVIEW_APP_PASSWORD "https://config-updater.magentahosted.dk/os2mo/review-apps/chart/undeploy?mr_id=$CI_MERGE_REQUEST_IID"
environment:
name: review/$CI_MERGE_REQUEST_IID
action: stop
rules:
- if: $CI_MERGE_REQUEST_ID
when: manual
allow_failure: true


# Release stage
###############
Expand Down

0 comments on commit edcdf44

Please sign in to comment.