Skip to content

Commit d47102a

Browse files
committed
chore: Remove unused workflow files and github actions, update dependencies, and security improvements
1 parent 489a706 commit d47102a

File tree

164 files changed

+5244
-14310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+5244
-14310
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11+
[*.{cjs,mjs,js,jsx,ts,tsx,json,css}]
12+
indent_size = 2
13+
1114
[*.md]
1215
trim_trailing_whitespace = false
1316

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SESSION_DOMAIN=null
3434

3535
BROADCAST_CONNECTION=log
3636
FILESYSTEM_DISK=local
37-
QUEUE_CONNECTION=database
37+
QUEUE_CONNECTION=sync
3838

3939
CACHE_STORE=database
4040
# CACHE_PREFIX=

.eslintignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Please provide detailed steps for reproducing the issue.
3131

3232
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
3333

34-
- Firmware Version:
35-
- Operating System:
36-
- SDK version:
37-
- Toolchain version:
34+
* Firmware Version:
35+
* Operating System:
36+
* SDK version:
37+
* Toolchain version:
3838

3939
## Failure Logs
4040

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
# TaskTitle - [###](https://app.clickup.com/t/###)
1+
# {0} - [{1}](https://app.clickup.com/t/{2})
22

33
## 💻 What type of change is this?
44

5-
- [ ] 💎 Feature
6-
- [ ] 🐛 Bug Fix
7-
- [ ] 📝 Documentation Update
8-
- [ ] 🎨 Styling
9-
- [ ] 🧑‍💻 Code Refactor
10-
- [ ] 🔥 Performance Improvements
11-
- [ ] ✅ Test
12-
- [ ] 🤖 Build / CI
5+
{3}
136

147
## ⭐ Description
158

@@ -18,7 +11,7 @@ Please include a summary of the change and which issue is fixed. Please also inc
1811
Example:
1912
-->
2013

21-
For more background, see ticket **CU-#[in-progress].**
14+
For more background, see ticket **{1}[in-progress].**
2215

2316
<!--
2417
ONLY ADD SECTION IF A NEW PACKAGE IS ADDED
@@ -39,21 +32,26 @@ Please include before AND after screenshots of the change, or proof of test abou
3932

4033
### Before
4134

35+
![image](https://github.com/Light-it-labs/lightranet/assets/17851841/f55f13c3-0f79-4d38-a6d9-51444daf3c81)
36+
4237
### After
4338

39+
![image](https://github.com/Light-it-labs/lightranet/assets/17851841/38fd90e3-09e0-4af4-85e0-b8801d479f8c)
40+
41+
4442
## 💬 Comments
4543

4644
<!--
4745
Please describe any known issues, bugs, or unintended consequences with this change. Also, please include any additional comments you feel are relevant to the reviewer.
48-
-->
4946
47+
Ex:
5048
This pr is blocked by #1234.
5149
Im awaiting backend changes to be merged before I can complete this, etc.
5250
This
51+
-->
5352

5453
## ✅ Checklist
55-
56-
- [ ] This PR can be merged (it is not a draft, work in progress, or blocked on another PR)
54+
### To review
5755
- [ ] I have tested this change locally in multiple screen sizes
5856
- [ ] My code follows the style guidelines of this project
5957
- [ ] I have performed a self-review of my own code

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "npm" # See documentation for possible values
9-
directory: "/" # Location of package manifests
10-
schedule:
11-
interval: "weekly"
12-
138
- package-ecosystem: "composer" # See documentation for possible values
149
directory: "/" # Location of package manifests
1510
schedule:

.github/labeler.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
feature:
2+
- head-branch: ['^feature', 'feature']
3+
4+
bugfix:
5+
- head-branch: [ '^bugfix', 'bugfix' ]
6+
7+
hotfix:
8+
- head-branch: [ '^hotfix', 'hotfix' ]
9+
10+
release:
11+
- base-branch: 'main'
12+
13+
have testing:
14+
- changed-files:
15+
- any-glob-to-any-file: tests/**
16+
17+
migrations:
18+
- changed-files:
19+
- any-glob-to-any-file: database/migrations/**
20+
21+
dependencies:
22+
- changed-files:
23+
- any-glob-to-any-file: ['composer.**', 'package.**', 'package-lock.**', 'poetry.lock', 'yarn.lock', 'pnpm-lock.**']
24+
25+
change env:
26+
- changed-files:
27+
- any-glob-to-any-file: '.env.**'
28+
29+
include command:
30+
- changed-files:
31+
- any-glob-to-any-file: 'src/Shared/App/Console/**'
32+
33+
documentation:
34+
- changed-files:
35+
- any-glob-to-any-file: ['README.**', 'docs/**']
36+
37+
refactor:
38+
- head-branch: [ '^refactor', 'refactor' ]
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# This workflow will build and push a new container image to Amazon ECR,
2+
# and then will deploy a new task definition to Amazon ECS, when there is a push to the "master" branch.
3+
#
4+
# To use this workflow, you will need to complete the following set-up steps:
5+
#
6+
# 1. Create an ECR repository to store your images.
7+
# For example: `aws ecr create-repository --repository-name my-ecr-repo --region us-east-2`.
8+
# Replace the value of the `ECR_REPOSITORY` environment variable in the workflow below with your repository's name.
9+
# Replace the value of the `AWS_REGION` environment variable in the workflow below with your repository's region.
10+
#
11+
# 2. Create an ECS task definition, an ECS cluster, and an ECS service.
12+
# For example, follow the Getting Started guide on the ECS console:
13+
# https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun
14+
# Replace the value of the `ECS_SERVICE` environment variable in the workflow below with the name you set for the Amazon ECS service.
15+
# Replace the value of the `ECS_CLUSTER` environment variable in the workflow below with the name you set for the cluster.
16+
#
17+
# 3. Store your ECS task definition as a JSON file in your repository.
18+
# The format should follow the output of `aws ecs register-task-definition --generate-cli-skeleton`.
19+
# Replace the value of the `ECS_TASK_DEFINITION` environment variable in the workflow below with the path to the JSON file.
20+
# Replace the value of the `CONTAINER_NAME` environment variable in the workflow below with the name of the container
21+
# in the `containerDefinitions` section of the task definition.
22+
#
23+
# 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
24+
# See the documentation for each action used below for the recommended IAM policies for this IAM user,
25+
# and best practices on handling the access key credentials.
26+
27+
name: Deploy to Amazon ECS DEV
28+
29+
on:
30+
workflow_dispatch:
31+
push:
32+
branches: ["develop"]
33+
34+
env:
35+
ENVIRONMENT: dev
36+
AWS_REGION: us-east-1 # set this to your preferred AWS region, e.g. us-west-1
37+
ECR_REPOSITORY: REPLACEPROJECTNAME # set this to your Amazon ECR repository name
38+
ECS_CLUSTER: REPLACEPROJECTNAME # set this to your Amazon ECS cluster name
39+
# ECS_TASK_DEFINITION: MY_ECS_TASK_DEFINITION # set this to the path to your Amazon ECS task definition
40+
# file, e.g. .aws/task-definition.json
41+
CONTAINER_NAME:
42+
REPLACEPROJECTNAME # set this to the name of the container in the
43+
# containerDefinitions section of your task definition
44+
DOCKER_PLATFORM: linux/amd64 # set this to the platform you want to build for
45+
IMAGE_TAG: ${{ github.run_id }}-${{ github.run_attempt }}
46+
REGISTRY_URL: <ECR URL>
47+
48+
permissions:
49+
contents: read
50+
id-token: write
51+
52+
jobs:
53+
setup:
54+
name: Deploy
55+
runs-on: ubuntu-latest
56+
# environment: dev # Works only on paid GH orgs
57+
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Configure AWS credentials
63+
uses: aws-actions/configure-aws-credentials@v4
64+
with:
65+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ vars.AWS_GITHUB_ACTIONS_ROLE }}
66+
aws-region: ${{ env.AWS_REGION }}
67+
68+
- name: Login to Amazon ECR
69+
id: login-ecr
70+
uses: aws-actions/amazon-ecr-login@v2
71+
72+
- name: Set up Docker Buildx
73+
uses: docker/setup-buildx-action@v3
74+
with:
75+
platforms: ${{ env.DOCKER_PLATFORM }}
76+
77+
- name: Set environment
78+
uses: SpicyPizza/[email protected]
79+
with:
80+
envkey_VITE_APP_NAME: "${{ vars.VITE_APP_NAME }}"
81+
envkey_VITE_SENTRY_DSN: "${{ vars.VITE_SENTRY_DSN }}"
82+
envkey_VITE_SENTRY_ENVIRONMENT: "${{ vars.VITE_SENTRY_ENVIRONMENT }}"
83+
envkey_VITE_API_URL: "${{ vars.VITE_API_URL }}"
84+
envkey_VITE_APP_ENV: "${{ vars.VITE_APP_ENV }}"
85+
envkey_VITE_APP_URL: "${{ vars.VITE_APP_URL }}"
86+
87+
file_name: .env
88+
89+
- name: Build and push
90+
id: build-image
91+
env:
92+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
93+
uses: docker/build-push-action@v6
94+
with:
95+
context: .
96+
push: true
97+
platforms: ${{ env.DOCKER_PLATFORM }}
98+
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
99+
file: ./deployment/image/Dockerfile
100+
101+
deploy:
102+
needs: setup
103+
runs-on: ubuntu-latest
104+
# environment: dev # Works only on paid GH orgs
105+
strategy:
106+
matrix:
107+
service: [app]
108+
steps:
109+
- name: Configure AWS credentials
110+
uses: aws-actions/configure-aws-credentials@v4
111+
with:
112+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ vars.AWS_GITHUB_ACTIONS_ROLE }}
113+
aws-region: ${{ env.AWS_REGION }}
114+
115+
- name: Download task def
116+
run: |
117+
aws ecs describe-task-definition --task-definition ${{ matrix.service }}_task_definition_${{ env.ECR_REPOSITORY }} --query taskDefinition > task-definition.json
118+
119+
- name: Fill in the new image ID in the Amazon ECS task definition
120+
id: task-def
121+
uses: aws-actions/amazon-ecs-render-task-definition@v1
122+
with:
123+
task-definition: task-definition.json
124+
container-name: ${{ env.CONTAINER_NAME }}
125+
image: ${{ env.REGISTRY_URL }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
126+
127+
- name: Deploy Amazon ECS task definition
128+
uses: aws-actions/amazon-ecs-deploy-task-definition@v2
129+
with:
130+
task-definition: ${{ steps.task-def.outputs.task-definition }}
131+
service: ${{ matrix.service }}_service_${{ env.ECR_REPOSITORY }}
132+
cluster: ${{ env.ECS_CLUSTER }}
133+
wait-for-service-stability: false

.github/workflows/issues.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/pull-requests.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)