Skip to content

Commit

Permalink
Release v0.20.1 (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Jul 3, 2024
2 parents 3254ae1 + f64f76e commit 3e98ddb
Show file tree
Hide file tree
Showing 530 changed files with 32,909 additions and 21,729 deletions.
14 changes: 11 additions & 3 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"extends": ["@commitlint/config-conventional"],
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"subject-case": [
2,
"always",
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
[
"sentence-case",
"start-case",
"pascal-case",
"upper-case",
"lower-case"
]
],
"type-enum": [
2,
Expand All @@ -25,4 +33,4 @@
]
]
}
}
}
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module.exports = {
'no-await-in-loop': 'off',
'no-continue': 'off',
'no-console': 'warn',
'no-magic-numbers': 'warn',
'no-prototype-builtins': 'off',
'import/no-cycle': 'off',
'class-methods-use-this': 'off',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
name: Publish API to Production

on:
push:
tags:
- '**@impler/api@**'
- '**@impler/shared@**'
- '**@impler/dal@**'
workflow_call:
secrets:
GH_PACKAGES:
required: true
workflow_dispatch:

jobs:
publish_prod_api:
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v2
with:
node-version: '18.13.0'
node-version: '20.13.1'

- name: Start MongoDB
uses: supercharge/[email protected]
Expand All @@ -43,8 +39,10 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
env:
CI: false
with:
version: 7.9.4
version: 8.9.0
run_install: true

- name: Build, tag, and push image to Github Container Registry
Expand All @@ -59,12 +57,12 @@ jobs:
echo $GH_PASSWORD | docker login ghcr.io -u $GH_ACTOR --password-stdin
docker build -t ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG -f apps/api/Dockerfile .
docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest
docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod
# docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod
docker run --network=host --name api -dit --env NODE_ENV=test --env JWT_SECRET=impler --env COOKIE_DOMAIN=impler ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG
docker run --network=host appropriate/curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:3000/v1/health-check | grep 'ok'
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod
# docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
# docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG
# echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: Publish Embed to Production

on:
push:
tags:
- '**@impler/embed@**'
workflow_call:
secrets:
GH_PACKAGES:
required: true
workflow_dispatch:

jobs:
publish_prod_embed:
build_embed:
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v2
with:
node-version: '18.13.0'
node-version: '20.13.1'

- name: Cache pnpm modules
uses: actions/cache@v2
Expand All @@ -36,8 +34,10 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
env:
CI: false
with:
version: 7.9.4
version: 8.9.0
run_install: true

- name: Build
Expand All @@ -61,3 +61,4 @@ jobs:
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: Publish Queue Manager to Production

on:
push:
tags:
- '**@impler/queue-manager@**'
- '**@impler/shared@**'
workflow_call:
secrets:
GH_PACKAGES:
required: true
workflow_dispatch:

jobs:
publish_prod_queue-manager:
build_queuemanager:
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v2
with:
node-version: '18.13.0'
node-version: '20.13.1'

- name: Cache pnpm modules
uses: actions/cache@v2
Expand All @@ -37,10 +34,12 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
env:
CI: false
with:
version: 7.9.4
version: 8.9.0
run_install: true

- name: Build, tag, and push image to Github Container Registry
id: build-image
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
name: Publish Web app to Production

on:
push:
tags:
- '**@impler/web@**'
workflow_call:
secrets:
GH_PACKAGES:
required: true
workflow_dispatch:

jobs:
publish_prod_web:
build_web:
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v2
with:
node-version: '18.13.0'
node-version: '20.13.1'

- name: Cache pnpm modules
uses: actions/cache@v2
Expand All @@ -36,10 +34,12 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
env:
CI: false
with:
version: 7.9.4
version: 8.9.0
run_install: true

- name: Build, tag, and push image to Github container registry
id: build-image
env:
Expand All @@ -56,4 +56,4 @@ jobs:
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG"
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: Publish Widget to Production

on:
push:
tags:
- '**@impler/widget@**'
- '**@impler/shared@**'
workflow_call:
secrets:
GH_PACKAGES:
required: true
workflow_dispatch:

jobs:
publish_prod_widget:
build_widget:
if: "!contains(github.event.head_commit.message, 'ci skip')"
# The type of runner that the job will run on
runs-on: ubuntu-latest
timeout-minutes: 80
environment: Production
permissions:
contents: read
packages: write
deployments: write
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/setup-node@v2
with:
node-version: '18.13.0'
node-version: '20.13.1'

- name: Cache pnpm modules
uses: actions/cache@v2
Expand All @@ -37,8 +34,10 @@ jobs:
${{ runner.os }}-
- uses: pnpm/[email protected]
env:
CI: false
with:
version: 7.9.4
version: 8.9.0
run_install: true

- name: Envsetup
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on:
push:
branches:
- next

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# - uses: sonarsource/sonarqube-quality-gate-action@master
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Loading

0 comments on commit 3e98ddb

Please sign in to comment.