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

Revert "Sandeep/bot 404/onboarding tour improvements 1" #9985

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
63 changes: 55 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,53 @@ commands:
name: Tag
command: echo "<< parameters.version_name >>-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" > packages/core/dist/version

docker_build_push:
description: "Build and Push image to docker hub"
parameters:
docker_image_latest_tag:
type: string
default: "latest-staging"
docker_image_name:
type: string
default: "deriv-app"
docker_file:
type: string
default: "Dockerfile"
steps:
- setup_remote_docker
- run:
name: Building docker image
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
docker build -t ${DOCKHUB_ORGANISATION}/<< parameters.docker_image_name >>:${TAG} -t ${DOCKHUB_ORGANISATION}/<< parameters.docker_image_name >>:<< parameters.docker_image_latest_tag >> -f << parameters.docker_file >> .
- run:
name: Pushing Image to docker hub
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
docker push ${DOCKHUB_ORGANISATION}/<< parameters.docker_image_name >>:<< parameters.docker_image_latest_tag >>
docker push ${DOCKHUB_ORGANISATION}/<< parameters.docker_image_name >>:${TAG}
k8s_deploy:
description: "Deploy to k8s cluster"
parameters:
k8s_namespace:
type: string
default: "deriv-app-staging"
k8s_service:
type: string
default: "deriv-app"
steps:
- k8s/install-kubectl
- run:
name: Deploying to k8s cluster to namespace << parameters.k8s_namespace >>
command: |
TAG=${CIRCLE_TAG:-$CIRCLE_SHA1}
export NAMESPACE=<< parameters.k8s_namespace >>
git clone https://github.com/binary-com/devops-ci-scripts
cd devops-ci-scripts/k8s-build_tools
echo $CA_CRT | base64 --decode > ca.crt
./release.sh << parameters.k8s_service >> ${TAG}

publish_to_pages_staging:
description: "Publish to cloudflare pages"
steps:
Expand Down Expand Up @@ -155,6 +202,8 @@ jobs:
root: packages
paths:
- core
- docker_build_push
- k8s_deploy
- notify_slack
environment:
NODE_ENV: staging
Expand All @@ -173,8 +222,10 @@ jobs:
root: packages
paths:
- core


- docker_build_push:
docker_image_latest_tag: latest
- k8s_deploy:
k8s_namespace: "deriv-app-production"
- notify_slack
environment:
NODE_ENV: staging
Expand Down Expand Up @@ -222,12 +273,8 @@ jobs:
name: "Check TypeScript for @deriv/stores"
command: npx tsc --project packages/stores/tsconfig.json -noEmit
- run:
name: "Check TypeScript and linting for @deriv/wallets"
command: |
npx tsc --project packages/wallets/tsconfig.json -noEmit
npx eslint --fix --config packages/wallets/.eslintrc.js packages/wallets
npx stylelint packages/wallets/**/*.scss

name: "Check TypeScript for @deriv/wallets"
command: npx tsc --project packages/wallets/tsconfig.json -noEmit
# - run:
# name: "Check TypeScript for @deriv/cashier"
# command: npx tsc --project packages/cashier/tsconfig.json -noEmit
Expand Down
2 changes: 1 addition & 1 deletion .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
'shorthand-property-no-redundant-values': true,
'string-no-newline': true,
'time-min-milliseconds': 100,
'unit-allowed-list': ['fr', 'px', 'em', 'rem', '%', 'svh', 'vw', 'vh', 'deg', 'ms', 's', 'dpcm'],
'unit-allowed-list': ['fr', 'px', 'em', 'rem', '%', 'vw', 'vh', 'deg', 'ms', 's', 'dpcm'],
'value-keyword-case': 'lower',
},
extends: [
Expand Down
Loading