Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit fc346b7

Browse files
Merge pull request #247 from ali-hosseini-deriv/ako/remove-docker-k8s-setup
Ako/ remove docker config as they are not used anymore
2 parents 05eb3ac + 6a0704e commit fc346b7

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

.circleci/config.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2.1
22
orbs:
3-
k8s: circleci/[email protected]
43
slack: circleci/[email protected]
54
commands:
65
npm_install_from_cache:
@@ -33,49 +32,6 @@ commands:
3332
name: Tag build
3433
command: echo "<< parameters.version_name >> $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > build/version
3534

36-
docker_build_push:
37-
description: "Build and push Docker image to Docker Hub"
38-
parameters:
39-
docker_latest_image_tag:
40-
type: string
41-
default: "latest-staging"
42-
docker_image_tag:
43-
type: string
44-
default: ${CIRCLE_SHA1}
45-
steps:
46-
- setup_remote_docker
47-
- run:
48-
name: Building docker image
49-
command: |
50-
docker build -t ${DOCKHUB_ORGANISATION}/deriv-com-api:<< parameters.docker_image_tag >> -t ${DOCKHUB_ORGANISATION}/deriv-com-api:<< parameters.docker_latest_image_tag >> .
51-
- run:
52-
name: Pushing Image to docker hub
53-
command: |
54-
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
55-
docker push ${DOCKHUB_ORGANISATION}/deriv-com-api:<< parameters.docker_image_tag >>
56-
docker push ${DOCKHUB_ORGANISATION}/deriv-com-api:<< parameters.docker_latest_image_tag >>
57-
k8s_deploy:
58-
description: "Deploy to k8s cluster"
59-
parameters:
60-
target:
61-
type: string
62-
default: "beta"
63-
k8s_version:
64-
type: string
65-
default: ${CIRCLE_SHA1}
66-
k8s_namespace:
67-
type: string
68-
default: "deriv-com-api-staging"
69-
steps:
70-
- k8s/install-kubectl
71-
- run:
72-
name: Deploying to k8s cluster for service << parameters.k8s_namespace >>
73-
command: |
74-
export NAMESPACE=<< parameters.k8s_namespace >>
75-
git clone https://github.com/binary-com/devops-ci-scripts
76-
cd devops-ci-scripts/k8s-build_tools
77-
echo $CA_CRT | base64 --decode > ca.crt
78-
./release.sh deriv-com-api << parameters.k8s_version >>
7935
notify_slack:
8036
description: "Notify slack"
8137
steps:
@@ -123,8 +79,6 @@ jobs:
12379
- npm_install_from_cache
12480
- build
12581
- versioning
126-
- docker_build_push
127-
- k8s_deploy
12882
- publish_to_pages_staging
12983
- notify_slack
13084
environment:
@@ -139,12 +93,6 @@ jobs:
13993
- build
14094
- versioning:
14195
version_name: production
142-
- docker_build_push:
143-
docker_latest_image_tag: latest
144-
docker_image_tag: ${CIRCLE_SHA1}
145-
- k8s_deploy:
146-
k8s_namespace: "deriv-com-api-production"
147-
k8s_version: ${CIRCLE_SHA1}
14896
- publish_to_pages_production
14997
- notify_slack
15098
environment:

0 commit comments

Comments
 (0)