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

Develop #2

Open
wants to merge 12 commits into
base: main
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
2 changes: 2 additions & 0 deletions .env.variables
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
STRABOT_MANAGER_URL=http://localhost:1337/api
STRABOT_MANAGER_TOKEN=6578c028f8e49ae...
9 changes: 1 addition & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ on:
- main

jobs:
ci:
name: CI
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: exit 0
delivery:
name: Delivery
needs:
- ci
runs-on: ubuntu-latest
steps:
- uses: actalog/check-ci@main
- uses: actions/checkout@v4
- run: echo "Your delivery here"
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
- workflow_dispatch

jobs:
node-ci:
name: Node CI
ci:
name: CI Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gabrielrufino/node-ci@v2
- uses: actalog/node-ci@v3
- uses: actalog/dockerfile-ci@v2

concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Other
.wwebjs*
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20-alpine

ENV STRABOT_MANAGER_URL=http://manager:1337/api
ENV STRABOT_MANAGER_TOKEN=

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm ci --only=production

COPY . .

CMD [ "npm", "start" ]
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
Loading
Loading