Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing the helm chart #374

Merged
merged 6 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
ArshamTeymouri marked this conversation as resolved.
Show resolved Hide resolved
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