Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
holmofy committed Nov 27, 2024
0 parents commit 3921d77
Show file tree
Hide file tree
Showing 234 changed files with 32,177 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DATABASE_URL=postgres://postgres:xudjf23adj213@localhost:5432/raline
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:5081
OTEL_EXPORTER_OTLP_HEADERS="authorization=Basic cm9vdEBleGFtcGxlLmNvbTpkMW1sbzRhVGpqTGoxOVNr,organization=default"
49 changes: 49 additions & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "build docker image"

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Just
uses: extractions/setup-just@v2
with:
just-version: "1.4.0"

- name: Build with just
run: just install-dependency && just release

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: holmofy/raline-server:latest
49 changes: 49 additions & 0 deletions .github/workflows/release-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "publish @raline/api"

on:
push:
branches:
- master
paths:
- .github/workflows/release-api.yaml
- packages/api/**

permissions:
contents: write
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: './packages/api'

- name: Install Just
uses: extractions/setup-just@v2
with:
just-version: '1.4.0'

- name: Build with just
run: just publish-api

- name: Publish NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/api
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
static/
/target
node_modules/
dist/
.DS_Store
data/openobserve/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.15.0
7 changes: 7 additions & 0 deletions .vscode/i18n-ally-custom-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
languageIds:
- rust

usageMatchRegex:
- "[^\\w\\d]t!\\([\\s\\n\\r]*['\"]({key})['\"]"

monopoly: true
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug Server",
"program": "${workspaceFolder}/target/debug/raline-server",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"i18n-ally.localesPaths": [
"locales",
"packages/admin/src/locales",
"packages/client/src/config/i18n"
]
}
Loading

0 comments on commit 3921d77

Please sign in to comment.