Skip to content

Commit

Permalink
chore: pulled the latest changes of master
Browse files Browse the repository at this point in the history
  • Loading branch information
hirad-deriv committed Nov 17, 2023
2 parents 1128c09 + 6689651 commit 12e7f6b
Show file tree
Hide file tree
Showing 254 changed files with 79,835 additions and 15,309 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
# deriv-app/wallets
# ==============================================================

/packages/wallets/**/* @adrienne-deriv @thisyahlen-deriv @farhan-nurzi-deriv @wojciech-deriv
/packages/wallets/**/* @adrienne-deriv @thisyahlen-deriv @farhan-nurzi-deriv @wojciech-deriv @aizad-deriv


# ==============================================================
Expand Down
60 changes: 30 additions & 30 deletions .github/actions/build_and_push_docker_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,66 @@ name: build_and_push_docker_image_and_k8s
description: Build docker image and push to docker hub and K8S
inputs:
DOCKERHUB_ORGANISATION:
description: 'Dockerhub Organisation'
description: "Dockerhub Organisation"
required: true
DOCKERHUB_USERNAME:
description: 'Dockerhub Username'
description: "Dockerhub Username"
required: true
DOCKERHUB_PASSWORD:
description: 'Dockerhub Password'
description: "Dockerhub Password"
required: true
K8S_NAMESPACE:
description: 'K8S namespace'
description: "K8S namespace"
required: true
K8S_SERVICE:
description: 'K8S service'
description: "K8S service"
required: true
KUBE_SERVER:
description: 'K8S server'
description: "K8S server"
required: true
SERVICEACCOUNT_TOKEN:
description: 'K8S service account token'
description: "K8S service account token"
required: true
CA_CRT:
description: 'K8S CA_CRT'
description: "K8S CA_CRT"
required: true
APP_VERSION:
description: 'App version'
description: "App version"
required: true
runs:
using: composite
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
uses: actions/checkout@v4
- name: Setup Environment variables
run: |
export NAMESPACE=${{ inputs.K8S_NAMESPACE }}
export KUBE_SERVER=${{ inputs.KUBE_SERVER }}
export SERVICEACCOUNT_TOKEN=${{ inputs.SERVICEACCOUNT_TOKEN }}
export DOCKERHUB_ORGANISATION=${{ inputs.DOCKERHUB_ORGANISATION }}
export CA_CRT=${{ inputs.CA_CRT }}
export APP_NAME="deriv-app"
export APP_VERSION=${{ inputs.APP_VERSION }}
echo "NAMESPACE=${{ inputs.K8S_NAMESPACE }}" >> "$GITHUB_ENV"
echo "KUBE_SERVER=${{ inputs.KUBE_SERVER }}" >> "$GITHUB_ENV"
echo "SERVICEACCOUNT_TOKEN=${{ inputs.SERVICEACCOUNT_TOKEN }}" >> "$GITHUB_ENV"
echo "DOCKERHUB_ORGANISATION=${{ inputs.DOCKERHUB_ORGANISATION }}" >> "$GITHUB_ENV"
echo "CA_CRT=${{ inputs.CA_CRT }}" >> "$GITHUB_ENV"
echo "APP_NAME=deriv-app" >> "$GITHUB_ENV"
echo "APP_VERSION=${{ inputs.APP_VERSION }}" >> "$GITHUB_ENV"
shell: bash
- name: Build docker image 🐳
run: docker build -t ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${APP_VERSION} -t ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${{ github.ref_name }} .

shell: bash
- name: Verify nginx image
run: |
set -e
docker run --rm ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${{ github.ref_name }} nginx -t
echo "docker image validated successfully"
set -e
docker run --rm ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${{ github.ref_name }} nginx -t
echo "docker image validated successfully"
shell: bash
- name: Pushing Image to docker hub 🐳
run: |
echo ${{ inputs.DOCKERHUB_PASSWORD }}| docker login -u ${{ inputs.DOCKERHUB_USERNAME }} --password-stdin
docker push ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${APP_VERSION}
docker push ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${{ github.ref_name }}
echo ${{ inputs.DOCKERHUB_PASSWORD }}| docker login -u ${{ inputs.DOCKERHUB_USERNAME }} --password-stdin
docker push ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${APP_VERSION}
docker push ${DOCKERHUB_ORGANISATION}/${APP_NAME}:${{ github.ref_name }}
shell: bash
- name: Deploy 🚀
run: |
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 ${APP_NAME} ${{ github.ref_name }}
- name: Deploy 🚀
run: |
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 ${APP_NAME} ${{ github.ref_name }}
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Coveralls
jobs:
build:
name: Reporter
runs-on: Runner_16cores_Deriv-app
runs-on: Runner_8cores_Deriv-app
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,6 +19,6 @@ jobs:
- name: Build
uses: "./.github/actions/build"
- name: Test
run: JEST_MAX_WORKERS=75% npm run test:jest -- --collectCoverage
run: JEST_MAX_WORKERS=95% npm run test:jest -- --collectCoverage
- name: Coveralls
uses: coverallsapp/github-action@v2
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
integration_tests:
name: Run Integration Tests
runs-on: Runner_16cores_Deriv-app
runs-on: Runner_8cores_Deriv-app
environment: Preview
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

send_slack_notification:
name: Send Slack notification
runs-on: Runner_16cores_Deriv-app
runs-on: Runner_8cores_Deriv-app
environment: Production
if: always()
needs: [build_test_and_publish]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build_test_and_publish:
name: Build, Test and Publish to Cloudflare Test
runs-on: Runner_16cores_Deriv-app
runs-on: Runner_8cores_Deriv-app
environment: Staging
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
build_and_test:
name: Build And Test
runs-on: Runner_16cores_Deriv-app
runs-on: Runner_8cores_Deriv-app
environment: Preview
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 12e7f6b

Please sign in to comment.