-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: lukas <[email protected]>
- Loading branch information
1 parent
54f0716
commit c2b7e27
Showing
200 changed files
with
10,591 additions
and
1,124 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
interval: 'daily' | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' | ||
groups: | ||
sentry: | ||
patterns: | ||
- "*sentry*" | ||
- '*sentry*' | ||
eslint: | ||
patterns: | ||
- "*eslint*" | ||
- '*eslint*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,53 @@ | ||
name: cicd | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
push: | ||
branches: ['*'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run build | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run build | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run lint | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run lint | ||
|
||
release: | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run build | ||
- run: pnpm install --frozen-lockfile --ignore-scripts --prod | ||
- uses: docker/metadata-action@v5 | ||
id: metadata | ||
with: | ||
images: runmymind/fleetbot | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=ref,event=pr | ||
type=sha | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
- uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- uses: int128/kaniko-action@v1 | ||
with: | ||
push: true | ||
file: ./docker/Dockerfile | ||
tags: ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} | ||
cache: true | ||
cache-repository: runmymind/fleetbot/cache | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- run: pnpm run build | ||
- run: pnpm install --frozen-lockfile --ignore-scripts --prod | ||
- uses: docker/metadata-action@v5 | ||
id: metadata | ||
with: | ||
images: runmymind/fleetbot | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
type=ref,event=pr | ||
type=sha | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
- uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- uses: int128/kaniko-action@v1 | ||
with: | ||
push: true | ||
file: ./docker/Dockerfile | ||
tags: ${{ steps.metadata.outputs.tags }} | ||
labels: ${{ steps.metadata.outputs.labels }} | ||
cache: true | ||
cache-repository: runmymind/fleetbot/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,5 @@ | |
/node_modules | ||
.env* | ||
!.env.example | ||
.prettierrc | ||
*.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
extends: default | ||
|
||
ignore: | | ||
node_modules | ||
node_modules | ||
rules: | ||
braces: | ||
min-spaces-inside: 1 | ||
max-spaces-inside: 1 | ||
brackets: | ||
min-spaces-inside: 1 | ||
max-spaces-inside: 1 | ||
document-start: disable | ||
document-end: | ||
present: false | ||
empty-lines: | ||
max: 1 | ||
max-start: 0 | ||
max-end: 0 | ||
empty-values: enable | ||
line-length: disable | ||
octal-values: enable | ||
truthy: | ||
level: error | ||
braces: | ||
min-spaces-inside: 1 | ||
max-spaces-inside: 1 | ||
brackets: | ||
min-spaces-inside: 1 | ||
max-spaces-inside: 1 | ||
document-start: disable | ||
document-end: | ||
present: false | ||
empty-lines: | ||
max: 1 | ||
max-start: 0 | ||
max-end: 0 | ||
empty-values: enable | ||
line-length: disable | ||
octal-values: enable | ||
truthy: | ||
level: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
node main/basedbot |
Oops, something went wrong.