diff --git a/.github/workflows/deploy-backend-dev.yml b/.github/workflows/deploy-backend-dev.yml index e49b04cb7..ee523bd36 100644 --- a/.github/workflows/deploy-backend-dev.yml +++ b/.github/workflows/deploy-backend-dev.yml @@ -25,7 +25,7 @@ jobs: role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-backend-access aws-region: ap-south-1 - - name: Build backend and deploy to S3 + - name: Build backend and copy zip to S3 run: | apt-get update && apt-get install -y zip GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go diff --git a/.github/workflows/deploy-backend-prod.yml b/.github/workflows/deploy-backend-prod.yml index c426cd375..8da8b8da4 100644 --- a/.github/workflows/deploy-backend-prod.yml +++ b/.github/workflows/deploy-backend-prod.yml @@ -25,7 +25,7 @@ jobs: role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-backend-access aws-region: ap-south-1 - - name: Build backend and deploy to S3 + - name: Build backend and copy zip to S3 run: | apt-get update && apt-get install -y zip GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o main main.go diff --git a/.github/workflows/deploy-frontend-dev.yml b/.github/workflows/deploy-frontend-dev.yml index ea851975a..93d8bd434 100644 --- a/.github/workflows/deploy-frontend-dev.yml +++ b/.github/workflows/deploy-frontend-dev.yml @@ -1,7 +1,10 @@ -name: DeployFrontendDev +name: DeployFrontendServerlessDev on: - push: + workflow_run: + workflows: ["DeployBackendDev"] + types: + - completed branches: - "master" @@ -25,13 +28,27 @@ jobs: role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access aws-region: ap-south-1 - - name: Build frontend and copy to S3 + - name: Build frontend and copy zip to S3 run: | cd nuxt-frontend - sed -i "s|VITE_IFRAMELY_KEY_VALUE|${{ secrets.IFRAMELY_KEY }}|g" config.js sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.js - sh ./../deploy/generate-sitemap.sh https://dev-stack.canopas.com https://dev-stack-api.canopas.com - yarn install --frozen-lockfile && yarn generate - aws s3 sync ./.output/public s3://dev-stack.canopas.com --exclude "*.js" - aws s3 sync ./.output/public s3://dev-stack.canopas.com --include "*.js" --content-type "application/javascript" - aws cloudfront create-invalidation --distribution-id ${{ secrets.DEV_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" \ No newline at end of file + sed -i "s|RESOURCES_URL|${{ secrets.RESOURCES_URL }}|g" config.js + sed -i "s|CLOUDFRONT_URL_VALUE|${{ secrets.CLOUDFRONT_URL_VALUE_DEV }}|g" config.js + yarn install --frozen-lockfile && yarn build + cd .output/server && zip canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../.. + aws s3 rm s3://canopas-website-ssr-dev --recursive + aws s3 sync --cache-control 'max-age=604800' --exclude *.html ./.output/public s3://canopas-website-ssr-dev + aws s3 sync ./.output/public s3://canopas-website-ssr-dev + + - name: Deploy cloudformation stack + id: canopas-website-dev-lambda-stack-frontend + uses: aws-actions/aws-cloudformation-github-deploy@v1 + with: + name: canopas-website-dev-lambda-stack-frontend + template: infrastructure/frontend.yml + capabilities: CAPABILITY_IAM,CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND + timeout-in-minutes: "10" + no-fail-on-empty-changeset: "1" + parameter-overrides: >- + EnvName=dev, + ZipFileName=canopas_website_SSR_dev_${{ github.sha }}-${{ github.run_attempt }}.zip diff --git a/.github/workflows/deploy-frontend-prod.yml b/.github/workflows/deploy-frontend-prod.yml index ef079df49..c1495a21c 100644 --- a/.github/workflows/deploy-frontend-prod.yml +++ b/.github/workflows/deploy-frontend-prod.yml @@ -1,7 +1,10 @@ -name: DeployFrontendProd +name: DeployFrontendServerlessProd on: - push: + workflow_run: + workflows: ["DeployBackendProd"] + types: + - completed branches: - "master" @@ -25,14 +28,28 @@ jobs: role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-frontend-access aws-region: ap-south-1 - - name: Build frontend and copy to S3 + - name: Build frontend and copy zip to S3 run: | cd nuxt-frontend - sed -i "s|VITE_IFRAMELY_KEY_VALUE|${{ secrets.IFRAMELY_KEY }}|g" config.prod.js sed -i "s|VITE_RECAPTCHA_SITE_KEY_VALUE|${{ secrets.RECAPTCHA_SITE_KEY }}|g" config.prod.js + sed -i "s|RESOURCES_URL|${{ secrets.RESOURCES_URL }}|g" config.prod.js + sed -i "s|CLOUDFRONT_URL_VALUE|${{ secrets.CLOUDFRONT_URL_VALUE_PROD }}|g" config.prod.js mv config.prod.js config.js - sh ./../deploy/generate-sitemap.sh https://canopas.com https://prod-stack-api.canopas.com - yarn install --frozen-lockfile && yarn generate - aws s3 sync ./.output/public s3://canopas.com --exclude "*.js" - aws s3 sync ./.output/public s3://canopas.com --include "*.js" --content-type "application/javascript" - aws cloudfront create-invalidation --distribution-id ${{ secrets.PROD_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" \ No newline at end of file + yarn install --frozen-lockfile && yarn build + cd .output/server && zip canopas_website_SSR_prod_${{ github.sha }}-${{ github.run_attempt }}.zip -r . && aws s3 cp canopas_website_SSR_prod_${{ github.sha }}-${{ github.run_attempt }}.zip s3://canopas-lambda-handlers && cd ../.. + aws s3 rm s3://canopas-website-ssr-dev --recursive + aws s3 sync --cache-control 'max-age=604800' --exclude *.html ./.output/public s3://canopas-website-ssr-prod + aws s3 sync ./.output/public s3://canopas-website-ssr-prod + + - name: Deploy cloudformation stack + id: canopas-website-prod-lambda-stack-frontend + uses: aws-actions/aws-cloudformation-github-deploy@v1 + with: + name: canopas-website-prod-lambda-stack-frontend + template: infrastructure/frontend.yml + capabilities: CAPABILITY_IAM,CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND + timeout-in-minutes: "10" + no-fail-on-empty-changeset: "1" + parameter-overrides: >- + EnvName=prod, + ZipFileName=canopas_website_SSR_prod_${{ github.sha }}-${{ github.run_attempt }}.zip diff --git a/README.md b/README.md index 8dd733571..97266857d 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,21 @@ +
+Here are some of the things you will get by working with us that make us special according to our past customers. @@ -16,34 +11,30 @@ :src="benefitbgImages[0]" :srcset="`${benefitbgImages[0]} 400w`" loading="lazy" - class="object-cover w-full h-[80%]" + class="object-cover w-full h-4/5" alt="background-image" />
Blogs
+Blogs
- {{ contribution.title }} -
-+
Whether you need...
{{ blog.description }} @@ -99,7 +83,7 @@
- Get started today -
-- Let's build the next big thing! +
Get started today
+
+ Let's build the next
+ big thing!
+
Let's improve your business's digital strategy and implement robust mobile apps to achieve your business objectives. Schedule Your Free Consultation Now.
+
Get started today
-+
Let's build the next big thing!
Let's improve your business's digital strategy and implement robust mobile apps to achieve your business objectives. Schedule Your Free Consultation Now.
ogether
Not sure where to start? We also offer code and architecture reviews, strategic planning, and more. @@ -37,11 +37,11 @@ Get Free Consultation
+
What our
- Clients Say
+ clients says
- DEVELOPMENT PROCESS +
+ Development process
-+
{{ process.title }}
+
{{ process.description }}
- Development Process -
+Development Process
- Canopas - A mobile app development company revolutionizing - businesses with bespoke Android, iOS, and Flutter applications. -
-+ Canopas - A mobile app development company revolutionizing businesses + with bespoke Android, iOS, and Flutter applications. +
+Canopas - A mobile app development company revolutionizing businesses with bespoke Android, iOS, and Flutter applications.
+- CASE STUDIES +
+ Our portfolios
1M+ users use our apps everyday
++ Discover how we transformed the vision of our clients into successful + mobile applications. +
++
{{ portfolio.name }}
- Our portfolios -
-- 1M+ users use our apps everyday -
-- Discover how we transformed the vision of our clients into successful - mobile applications. -
-@@ -108,11 +96,11 @@
@@ -122,10 +110,10 @@ >
@@ -133,7 +121,7 @@
Services
+
{{ service.title }}
+
{{ service.description }}
+
{{ service.title }}