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

Docker CI #458

Merged
merged 59 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
bda0879
fix
MidSpike Aug 20, 2023
040ca24
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Oct 23, 2023
1998fea
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Nov 4, 2023
f0a4ae4
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Dec 10, 2023
65c46b5
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Feb 5, 2024
ec5eb0c
Add reason to close embed for tickets
chessebuilderman Feb 18, 2024
926361f
Fix wording
chessebuilderman Feb 18, 2024
623344f
Add user_lookup context_menu for staff
chessebuilderman Feb 18, 2024
9f88d2e
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Mar 8, 2024
a8afa86
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Mar 12, 2024
b4195b8
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-bot
MidSpike Mar 22, 2024
54c1b8d
Add "add_user" command
chessebuilderman May 5, 2024
d9aafa2
Add "add_user" command
chessebuilderman May 5, 2024
9414b17
Add code generation thingy
chessebuilderman May 19, 2024
0b0d599
Merge branch 'master' of https://github.com/Inertia-Lighting/discord-…
chessebuilderman May 19, 2024
a58a932
modified: src/common/handlers/support_system_handler.ts
chessebuilderman May 19, 2024
0c575ae
Merge pull request #2 from chessebuilderman/Inertia-Lighting-master
chessebuilderman May 19, 2024
1a968bf
Add code generation thingy
chessebuilderman May 19, 2024
681f5db
Add speical word list
chessebuilderman May 19, 2024
2c3f96d
Add exports
chessebuilderman May 19, 2024
3d1508f
Update MidSpike Packages
chessebuilderman May 22, 2024
928ed5b
Code Generation
chessebuilderman May 22, 2024
a27542e
Remove code from testing
chessebuilderman May 22, 2024
d72e918
Change to edit reply instead of sending a new message
chessebuilderman May 22, 2024
0d15a5d
Grammar
chessebuilderman May 22, 2024
0743bc2
Add .trim() to ensure RegEx works nicely
chessebuilderman May 22, 2024
cb83b1e
Add button component for the user's profile.
chessebuilderman May 22, 2024
3707e47
Change command to begin_recovery_process
chessebuilderman Jun 20, 2024
aee9432
Change export
chessebuilderman Jun 20, 2024
ffb0218
Add user checks and mods for roblox user
chessebuilderman Jun 20, 2024
27156f2
Move to code_generation folder and add modifications for roblox user id
chessebuilderman Jun 20, 2024
d4ea3c5
Remove export
chessebuilderman Jun 20, 2024
dcf81c6
Move export file
chessebuilderman Jun 20, 2024
39d8896
Merge pull request #453 from chessebuilderman/my-single-change
dr4wn Jun 29, 2024
dd30a24
like a boss .... Merge branch 'master' of https://github.com/Inertia-…
MidSpike Jun 29, 2024
7b4a7e7
rev
dr4wn Jul 2, 2024
14827d7
Remove API Reference from profile
chessebuilderman Jul 3, 2024
ea0aab1
Fix pkg.json
chessebuilderman Jul 3, 2024
6d79d8c
Fix linting
chessebuilderman Jul 3, 2024
d8e768e
Convert rest of API
chessebuilderman Jul 3, 2024
517a4b4
Merge pull request #457 from chessebuilderman/remove-api-refrences
dr4wn Jul 4, 2024
b7778fd
Push Docker
DaRealFrost Jul 4, 2024
04804a3
Merge branch 'Inertia-Lighting:master' into patch-1
DaRealFrost Jul 4, 2024
3c906cd
Fixed cmd to start
DaRealFrost Jul 4, 2024
202227c
Hopefully final
DaRealFrost Jul 4, 2024
7b8998b
docker ci
DaRealFrost Jul 4, 2024
bfa1e8b
Update to docker file
DaRealFrost Jul 4, 2024
958d6ee
check
DaRealFrost Jul 4, 2024
4045d7b
Minor fixes
DaRealFrost Jul 4, 2024
b43fa78
Fix I think
DaRealFrost Jul 4, 2024
9f31bbe
Update order
DaRealFrost Jul 4, 2024
c5ce772
Fix???
DaRealFrost Jul 4, 2024
e211882
Final?
DaRealFrost Jul 4, 2024
2abece6
test
DaRealFrost Jul 4, 2024
d009550
final
DaRealFrost Jul 4, 2024
4d352d1
Update read me
DaRealFrost Jul 4, 2024
e62bfea
final I think
DaRealFrost Jul 4, 2024
8c3c84e
Preparation for CD
DaRealFrost Jul 4, 2024
229f130
Update to read.me so that it will be based of inertia actions
DaRealFrost Jul 4, 2024
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
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ MONGO_QUICK_SUPPORT_TOPICS_COLLECTION_NAME='quick-support-topics'
MONGO_USER_NOTES_COLLECTION_NAME='user-notes'

# Api Server Configurations
API_BASE64_ENCODED_TOKEN_FOR_USER_VERIFICATION_ENDPOINTS=''
API_SERVER_IP=''
API_SERVER_PORT=''
API_BASE64_ENCODED_TOKEN_FOR_USER_VERIFICATION_ENDPOINTS=''
19 changes: 19 additions & 0 deletions .github/workflows/docker-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "docker-cd"

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# - name: Build Docker Image
# run: |
# docker build . -t ci:0

# - name: Deploy Docker
# run: |
# docker compose pull
14 changes: 14 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "docker-ci"

on:
push: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build Docker Image
run: |
docker build . -t ci:0
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm test
npm run lint
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# Inertia Lighting Discord Bot

[![CodeQL](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/codeql-analysis.yml)

## About

This code was made for Inertia Lighting.

Any attempt to use it without explicit permission is prohibited.

Assume that all works contained in this repository are copyrighted and protected under law.

## Copyright

Copyright © Inertia Lighting, Some Rights Reserved
# Inertia Lighting Discord Bot

[![CodeQL](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/codeql-analysis.yml)
[![ESLint](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/eslint.yml/badge.svg)](https://github.com/Inertia-Lighting/discord-bot/actions/workflows/eslint.yml)
[![Docker](https://github.com/Inertia-Lighting/inertia-discord-bot/actions/workflows/docker-ci.yml/badge.svg)](https://github.com/Inertia-Lighting/inertia-discord-bot/actions/workflows/docker-ci.yml)

## About

This code was made for Inertia Lighting.

Any attempt to use it without explicit permission is prohibited.

Assume that all works contained in this repository are copyrighted and protected under law.

## Copyright

Copyright © Inertia Lighting, Some Rights Reserved
Empty file added compose.yaml
Empty file.
20 changes: 19 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@

FROM node:lts-alpine

# Create app directory
WORKDIR /usr/src/app

# Copy source code
COPY . /usr/src/app/

# Install dependencies
RUN npm ci --immutable

# Build the bot
RUN npm run build

# Create tmp directory
RUN mkdir -p /usr/src/app/temporary

# Start the bot
CMD ["npm", "start"]
Loading
Loading