Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2023-2024 refresh #12

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .env.vault
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#/-------------------.env.vault---------------------/
#/ cloud-agnostic vaulting standard /
#/ [how it works](https://dotenv.org/env-vault) /
#/--------------------------------------------------/

# development
DOTENV_VAULT_DEVELOPMENT="mnuq6r009xu1oBXlbgX1oP5kPeOwUPukxBK3cphuZ0Fsl/hOEQYsReIhQ5DlluUAjOMZvWuOwVDX5tfmqrtpBqEbbQZKpqYp9t/PPVr6hABwU1ELGuQDENi1iqbuQGI/WTPW6QjDCgAbEavBIkIOeSAIL5dCdrq7vjCO//Dz+r0ESX+kfQcVKHTuLD4LxqwqSzxjAq+L79v4rmaHg1avKod1dOCZiP1MUtWkVdEpshCbzy2mos5I4gpGQErTfSLT16ihORsD7PCzsVf2b0vYj+OgnXtpWUAjGj+qrCxjEqYTe2xvQjG+6lons4lbDcqEh1zxw84cKD2S1Iiz0MsaUkhNfSuv66oiuniZaxe+yBSu/cKMl+qD5qE53m4N9kDUQk1pQcOM8FpyvaWGwrmrl4kmG1AHii957jSDNsz+6rOLDLmkX3BbxK+1XXN3wwa/kRdOjXQ/zN7r5kikK0dqb64Kvy1MJ5+J2PIB53J8CE5S/auQgiLq80/AhjhH33qTyXTszCuJ4AlDSZwP/l0TsSbZxfQVkR1lSscKzCv3XHuq+rhIM+GbgUYoLIkhbhc2YLVjkznw16hjPyP+kQ4vASXlGz/6goIpAPf4a+f8dTg8zH4dRpYdU66VHxwpiqaqzInykBBHb29OSBmfOuw/6M3RESKyMGlsnRqzKe+mQM0VYEbN7OtmoGOND5nMh5IzmjpORC4uvyRt1EzI5dXDZrefi+ySHaUC5uf/df/x4d/IAgLqlQNQGKRnXsjutovrCy6PdcRDfbEqArsMIDuTGGnznxHqvd4prEPnTyxZ8fKXl9OCx9bc1AHJw+8iTI05/VsYDQiYNPGg5jWYTNKz7/jcIsTqj2KjCxDkumJI0MmGzpUwR/+hdUbfg3pudj/MJkE4Ach9Hipu+By1OmMblxf4bLiH+Di+fz7f8vt2Q918rPqy5HuMUDpcpG7VHBxVmnMoJgVqV6knNqJhVf/xwMgSe8ZGF8jFjIL8ickJ89H8FHp1wspR3SYlTA8jyFrd+QOLZ3QzA6xE05bt3mYkGah++DtCaQ7OLkrjDAWK1JHxR1iRR6KYTUOzZ3U42R+lJeX5TAiLcG7m94XnDDSjcqHOfuiWImjLAwCJiAQCn22NeVxTrB7PwUCtfcDrIbuV2sVTeu8/PjkcNFXeLueo5DXDphM+CTsONmmh5F4clKniQeLYwzMESlXqTaA="
jrock-3 marked this conversation as resolved.
Show resolved Hide resolved
DOTENV_VAULT_DEVELOPMENT_VERSION=3

# ci
DOTENV_VAULT_CI="jj5VGryshnURdhxnya7LJSfhqsjUdJZiPWcolulQy6gxjRjy/hBPqset0VtmOMlOyKDqSm/syiJIiiuKL7hb9ViEhRSmkTZ7Iv6Y0zDyMtCaO1+bXfoBbRnKPxthkKS/h3FLfaDc8i2DqAEcixCpnIAvAR+mWJwfgRPpxmW+Jyf7SCage+4x6EQrSloI+Ts0tUZRrBqHMFSAH8wjYm+COIs2YkBWdZfhBC4kUGx2VMQUfjPS86A/G/uxTQnENlWRgTXoOcO47MzuSH4hzR8Ih2hU6o+0Z+9X7a/wnt6m6/QI2sbM8j7P4Qc6Tla0io1bqyMD3PNH/KfDvjLl349BQcPluPCMF24rCzTIdhlZsT61KYBLsLmZ8IXT95GlUWfEAq1B2SU="
jrock-3 marked this conversation as resolved.
Show resolved Hide resolved
DOTENV_VAULT_CI_VERSION=3

# staging
DOTENV_VAULT_STAGING="mLJgvI2XjbVGsNrA5uhQgdo4QcFr2sxszcfxZpb5V9jzRZ+kNJTnU3w23UkvKo95L9skZlZ06DqsPTSEm68Brgd3NWObo+/rIm8cATWCd7EzWOwKx4OC5lDT1hxti+9bufDoRUEvp8EolcsxCdtmhjuLXSgEMWwXSBzfZYq1lGMmyaoGLzu0MAZ9It05a2svjZrR2t4h/hh4ClQUJtruqVMhutr/XxoO2l8So7bLBn1duujvpgmlSBO67n4c0OjfGpxNHfRU6anaWHqVNNPIZT5DUs/JqzfRXVnI46syrydSW2cLUcajH5jpl7uH2RWwazYncklPwVjwWz3Bb/kNK7KhJyfSTUGi5gSPsttRLdQYfbYr0GBUZIDq67G6mNNZGO9k424="
jrock-3 marked this conversation as resolved.
Show resolved Hide resolved
DOTENV_VAULT_STAGING_VERSION=3

# production
DOTENV_VAULT_PRODUCTION="JNTkw2+v+staeSB83lDkYpr/J11nRWfCvFlyCujLqg5GIFn0VlDIQe3YBFoUky/hcUBKX9AIwfdoxeVClWD4lHqhlZxA+gV6z3aRnmtHHthqWGzBdKs7MTR5IoaYczB9OCFa6yKfiu7Fxd64UOMF+5JblajJg3/lB3WkkEDVz4ouCQdU6B3PR5Yhlc5ZQ6SATk2eJfK5594WFSXhI3xIpOCijxw/tNhYs4G9zLYeduJdtgrxIfqOWvkV9RJIXHebqI1WKiKwuPwbU9z3ZYkCKbI0n9eM1gueFz0mnwf74vn+HjprBKqL0aGCFX0h8eNnQvoipbRKUiY+nQSq8HwhSfy69M1ky9JB8ouuo9zuiku7/T6deyV8HoMJkhukUjNqB7ptbOk="
jrock-3 marked this conversation as resolved.
Show resolved Hide resolved
DOTENV_VAULT_PRODUCTION_VERSION=3

#/----------------settings/metadata-----------------/
DOTENV_VAULT="vlt_2fabcdc982d04b5a1e33c3e8727a59ecabadc39576535c5d2ad6eb8840bd7c2e"
DOTENV_API_URL="https://vault.dotenv.org"
DOTENV_CLI="npx dotenv-vault@latest"
30 changes: 30 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: EC2 Deploy

on:
push:
branches: [dev-deployment]

jobs:
Deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Deploy in EC2
env:
PRIVATE_KEY: ${{ secrets.AWS_EC2_PRIVATE_KEY }}
HOSTNAME : ${{ secrets.AWS_EC2_HOSTNAME }}
USER: ${{ secrets.AWS_EC2_USER }}

run: |
echo "$PRIVATE_KEY" > private_key.pem && chmod 600 private_key.pem
ssh -o StrictHostKeyChecking=no -i private_key.pem ${USER}@${HOSTNAME} '

#Now we have got the access of EC2 and we will start the deploy .
cd ~/npo-backend-template &&
git checkout dev &&
git stash &&
git pull origin dev &&
yarn &&
pm2 restart app.js
'
13 changes: 7 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: CI

on:
[pull_request]

permissions: read-all

jobs:
eslint:
eslint:
runs-on: ubuntu-latest
steps:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
- run: yarn install
- name: Run eslint with reviewdog
uses: reviewdog/action-eslint@v1.14.0
uses: reviewdog/action-eslint@v1.23.0
with:
github_token: ${{ secrets.CTC_DEVOPS_ORG_PAT }}
reporter: github-pr-review
fail_on_error: false
eslint_flags: '**/*.{js,jsx}'

detect-secrets:
runs-on: ubuntu-latest
steps:
Expand All @@ -34,3 +34,4 @@ jobs:

# Prevents false positives from failing job
fail_on_error: false
detect_secrets_flags: --exclude-files ^.env.vault ^.git/*
13 changes: 0 additions & 13 deletions .github/workflows/heroku-deploy-logs.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/issue-assigned.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/review-requested.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/review-reviewed.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/scripts/issueAssigned.js

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/scripts/reviewRequested.js

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/scripts/reviewReviewed.js

This file was deleted.

Loading
Loading