Skip to content
Merged
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
46 changes: 46 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"installOhMyZsh": true,
"installOhMyZshConfig": true
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"johnpapa.Angular2",
"ms-vscode-remote.remote-containers",
"mikestead.dotenv",
"usernamehw.errorlens",
"ms-vscode-remote.vscode-remote-extensionpack",
"ms-vscode.remote-explorer",
"wayou.vscode-todo-highlight",
"ms-vscode-remote.remote-wsl",
"Angular.ng-template",
"streetsidesoftware.code-spell-checker",
"oouo-diogo-perdigao.docthis",
"nrwl.angular-console",
"esbenp.prettier-vscode"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.17.0'
node-version: '20.18.1'

- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: '**/node_modules'
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
shopt -u nullglob

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: dist/
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16.17.0'
node-version: '20.18.1'

- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: '**/node_modules'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
path: artifacts

- name: Docker login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/Supreme-Gaming/${{ matrix.image }}
flavor: |
Expand All @@ -68,7 +68,7 @@ jobs:
type=sha

- name: Build and push Docker images
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./artifacts/apps/${{ matrix.image }}
push: true
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"semi": true,
"singleQuote": true,
"arrowParens": "always",
"endOfLine": "crlf",
"overrides": [
{
"files": "*.html",
Expand All @@ -14,3 +13,4 @@
}
]
}

4 changes: 2 additions & 2 deletions apps/data-api-nest/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16.17.0 as builder
FROM node:20.18.1 as builder
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm i --omit=dev
COPY . ./

FROM node:16.17.0-alpine
FROM node:20.18.1-alpine
WORKDIR /app
COPY --from=builder /app .
CMD ["node", "main.js"]
4 changes: 2 additions & 2 deletions apps/supreme-discord-community-bot-node/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16.17.0 as builder
FROM node:20.18.1 as builder
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm i --omit=dev
COPY . ./

FROM node:16.17.0-alpine
FROM node:20.18.1-alpine
WORKDIR /app
COPY --from=builder /app .
CMD ["node", "main.js"]
4 changes: 2 additions & 2 deletions apps/supreme-discord-ticket-bot-node/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16.17.0 as builder
FROM node:20.18.1 as builder
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN npm i --omit=dev
COPY . ./

FROM node:16.17.0-alpine
FROM node:20.18.1-alpine
WORKDIR /app
COPY --from=builder /app .
CMD ["node", "main.js"]