-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into autosave-blog-content-in-editor
- Loading branch information
Showing
25 changed files
with
2,852 additions
and
1,680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
name: Deploy to dev | ||
# name: Deploy to dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
deploy-dev: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
# jobs: | ||
# deploy-dev: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# id-token: write | ||
# contents: read | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access | ||
aws-region: ap-south-1 | ||
# - name: Configure AWS credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access | ||
# aws-region: ap-south-1 | ||
|
||
- name: Build frontend and push on ECR | ||
run: | | ||
cd website | ||
echo NEXT_PUBLIC_IFRAMELY_KEY=${{ secrets.IFRAMELY_KEY_DEV }} >> .env | ||
echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_DEV }} >> .env | ||
echo NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN_DEV }} >> .env | ||
echo NEXT_PUBLIC_STRAPI_URL=${{ secrets.STRAPI_URL }} >> .env | ||
echo NEXT_PUBLIC_STRAPI_DOMAIN=${{ secrets.STRAPI_DOMAIN }} >> .env | ||
echo NEXT_PUBLIC_WEBSITE_URL=${{ secrets.WEBSITE_URL_DEV }} >> .env | ||
echo NEXT_PUBLIC_API_BASE=${{ secrets.API_BASE_DEV }} >> .env | ||
bash ./../deploy/deploy-ecr-image.sh dev-blog ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-blog | ||
# - name: Build frontend and push on ECR | ||
# run: | | ||
# cd website | ||
# echo NEXT_PUBLIC_IFRAMELY_KEY=${{ secrets.IFRAMELY_KEY_DEV }} >> .env | ||
# echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_DEV }} >> .env | ||
# echo NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN_DEV }} >> .env | ||
# echo NEXT_PUBLIC_STRAPI_URL=${{ secrets.STRAPI_URL }} >> .env | ||
# echo NEXT_PUBLIC_STRAPI_DOMAIN=${{ secrets.STRAPI_DOMAIN }} >> .env | ||
# echo NEXT_PUBLIC_WEBSITE_URL=${{ secrets.WEBSITE_URL_DEV }} >> .env | ||
# echo NEXT_PUBLIC_API_BASE=${{ secrets.API_BASE_DEV }} >> .env | ||
# bash ./../deploy/deploy-ecr-image.sh dev-blog ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-blog | ||
|
||
- name: Trigger Canopas website Workflow | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.WORKFLOW_TOKEN }} | ||
script: | | ||
await github.rest.repos.createDispatchEvent({ | ||
owner: 'canopas', | ||
repo: 'canopas-website', | ||
event_type: 'deploy-blog-dev', | ||
}); | ||
# - name: Trigger Canopas website Workflow | ||
# uses: actions/github-script@v6 | ||
# with: | ||
# github-token: ${{ secrets.WORKFLOW_TOKEN }} | ||
# script: | | ||
# await github.rest.repos.createDispatchEvent({ | ||
# owner: 'canopas', | ||
# repo: 'canopas-website', | ||
# event_type: 'deploy-blog-dev', | ||
# }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
name: Deploy to prod | ||
# name: Deploy to prod | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
deploy-prod: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
# jobs: | ||
# deploy-prod: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# id-token: write | ||
# contents: read | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access | ||
aws-region: ap-south-1 | ||
# - name: Configure AWS credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access | ||
# aws-region: ap-south-1 | ||
|
||
- name: Build frontend and push on ECR | ||
run: | | ||
cd website | ||
echo NEXT_PUBLIC_IFRAMELY_KEY=${{ secrets.IFRAMELY_KEY_PROD }} >> .env | ||
echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_PROD }} >> .env | ||
echo NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN_PROD }} >> .env | ||
echo NEXT_PUBLIC_STRAPI_URL=${{ secrets.STRAPI_URL }} >> .env | ||
echo NEXT_PUBLIC_STRAPI_DOMAIN=${{ secrets.STRAPI_DOMAIN }} >> .env | ||
echo NEXT_PUBLIC_WEBSITE_URL=${{ secrets.WEBSITE_URL_PROD }} >> .env | ||
echo NEXT_PUBLIC_API_BASE=${{ secrets.API_BASE_PROD }} >> .env | ||
mv config-prod.js config.js | ||
bash ./../deploy/deploy-ecr-image.sh prod-blog ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-blog | ||
# - name: Build frontend and push on ECR | ||
# run: | | ||
# cd website | ||
# echo NEXT_PUBLIC_IFRAMELY_KEY=${{ secrets.IFRAMELY_KEY_PROD }} >> .env | ||
# echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.RECAPTCHA_SITE_KEY_PROD }} >> .env | ||
# echo NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN_PROD }} >> .env | ||
# echo NEXT_PUBLIC_STRAPI_URL=${{ secrets.STRAPI_URL }} >> .env | ||
# echo NEXT_PUBLIC_STRAPI_DOMAIN=${{ secrets.STRAPI_DOMAIN }} >> .env | ||
# echo NEXT_PUBLIC_WEBSITE_URL=${{ secrets.WEBSITE_URL_PROD }} >> .env | ||
# echo NEXT_PUBLIC_API_BASE=${{ secrets.API_BASE_PROD }} >> .env | ||
# mv config-prod.js config.js | ||
# bash ./../deploy/deploy-ecr-image.sh prod-blog ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.$AWS_REGION.amazonaws.com/canopas-blog | ||
|
||
- name: Trigger Canopas website Workflow | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.WORKFLOW_TOKEN }} | ||
script: | | ||
await github.rest.repos.createDispatchEvent({ | ||
owner: 'canopas', | ||
repo: 'canopas-website', | ||
event_type: 'deploy-blog-prod', | ||
}); | ||
# - name: Trigger Canopas website Workflow | ||
# uses: actions/github-script@v6 | ||
# with: | ||
# github-token: ${{ secrets.WORKFLOW_TOKEN }} | ||
# script: | | ||
# await github.rest.repos.createDispatchEvent({ | ||
# owner: 'canopas', | ||
# repo: 'canopas-website', | ||
# event_type: 'deploy-blog-prod', | ||
# }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ DATABASE_SSL= | |
IFRAMELY_API_KEY= | ||
HR_FROM_MAIL= | ||
SENTRY_DSN= | ||
|
||
GH_PERSONAL_ACCESS_TOKEN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ | |
"bio": { | ||
"type": "text", | ||
"required": true, | ||
"maxLength": 250, | ||
"maxLength": 500, | ||
"minLength": 30 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.