Skip to content

Commit

Permalink
Merge pull request #374 from arshamparity/master
Browse files Browse the repository at this point in the history
removing the helm chart
  • Loading branch information
ArshamTeymouri authored Aug 23, 2021
2 parents 64816c1 + a74f21a commit 05f165e
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 894 deletions.
39 changes: 18 additions & 21 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ variables:
FRONTEND_CONTAINER_REPO: "substrate-telemetry-frontend"
KUBE_NAMESPACE: "substrate-telemetry"
BACKEND_IMAGE_FULL_NAME: "${CONTAINER_REGISTRY}/${BACKEND_CONTAINER_REPO}:${CI_COMMIT_SHORT_SHA}"
BACKEND_IMAGE_LATEST_TAG: "${CONTAINER_REGISTRY}/${BACKEND_CONTAINER_REPO}:latest"
FRONTEND_IMAGE_FULL_NAME: "${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}:${CI_COMMIT_SHORT_SHA}"
FRONTEND_IMAGE_LATEST_TAG: "${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}:latest"

stages:
- dockerize
Expand All @@ -25,23 +27,11 @@ stages:
.deploy-k8s: &deploy-k8s
image: paritytech/kubetools:3.5.3
script:
- echo "Deploying using image $BACKEND_IMAGE_FULL_NAME"
- echo "Using Helm `helm version --short`"
- export KUBERNETES_VERSION_TAG="$CI_PIPELINE_ID"
- |-
sed -i "s/version:.*/version: $KUBERNETES_VERSION_TAG/" ./helm/Chart.yaml
- |-
sed -i "s/appVersion:.*/appVersion: $KUBERNETES_VERSION_TAG/" ./helm/Chart.yaml
# validate the chart
- helm template
--create-namespace
--namespace $KUBE_NAMESPACE
--set image.backend.repository="${CONTAINER_REGISTRY}/${BACKEND_CONTAINER_REPO}"
--set image.backend.tag="${CI_COMMIT_SHORT_SHA}"
--set image.frontend.repository="${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}"
--set image.frontend.tag="${CI_COMMIT_SHORT_SHA}"
$KUBE_NAMESPACE ./helm/
# install the chart into the relevant cluster
echo "Deploying using image $BACKEND_IMAGE_FULL_NAME"
echo "Using Helm `helm version --short`"
helm repo add parity https://paritytech.github.io/helm-charts/
helm repo update
- helm upgrade
--install
--atomic
Expand All @@ -52,7 +42,8 @@ stages:
--set image.backend.tag="${CI_COMMIT_SHORT_SHA}"
--set image.frontend.repository="${CONTAINER_REGISTRY}/${FRONTEND_CONTAINER_REPO}"
--set image.frontend.tag="${CI_COMMIT_SHORT_SHA}"
$KUBE_NAMESPACE ./helm/
--values $HELM_VALUES_FILE
$KUBE_NAMESPACE parity/substrate-telemetry
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
Expand All @@ -65,21 +56,27 @@ dockerize-backend:
- echo "Building image $BACKEND_IMAGE_FULL_NAME"
- buildah bud
--format=docker
--tag "$BACKEND_IMAGE_FULL_NAME" ./backend/
--tag "$BACKEND_IMAGE_FULL_NAME"
--tag "$BACKEND_IMAGE_LATEST_TAG" ./backend/
- echo ${Docker_Hub_Pass_Parity} |
buildah login --username ${Docker_Hub_User_Parity} --password-stdin docker.io
- buildah push --format=v2s2 "$BACKEND_IMAGE_FULL_NAME"
- |-
buildah push --format=v2s2 "$BACKEND_IMAGE_FULL_NAME"
buildah push --format=v2s2 "$BACKEND_IMAGE_LATEST_TAG"
dockerize-frontend:
<<: *dockerize
script:
- echo "Building image $FRONTEND_IMAGE_FULL_NAME"
- buildah bud
--format=docker
--tag "$FRONTEND_IMAGE_FULL_NAME" ./frontend/
--tag "$FRONTEND_IMAGE_FULL_NAME"
--tag "$FRONTEND_IMAGE_LATEST_TAG" ./frontend/
- echo ${Docker_Hub_Pass_Parity} |
buildah login --username ${Docker_Hub_User_Parity} --password-stdin docker.io
- buildah push --format=v2s2 "$FRONTEND_IMAGE_FULL_NAME"
- |-
buildah push --format=v2s2 "$FRONTEND_IMAGE_FULL_NAME"
buildah push --format=v2s2 "$FRONTEND_IMAGE_LATEST_TAG"
deploy-parity-stg:
stage: staging
Expand Down
23 changes: 0 additions & 23 deletions helm/.helmignore

This file was deleted.

24 changes: 0 additions & 24 deletions helm/Chart.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions helm/templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions helm/templates/_helpers.tpl

This file was deleted.

76 changes: 0 additions & 76 deletions helm/templates/core-deployment.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions helm/templates/core-hpa.yaml

This file was deleted.

62 changes: 0 additions & 62 deletions helm/templates/core-ingress.yaml

This file was deleted.

Loading

0 comments on commit 05f165e

Please sign in to comment.