diff --git a/.env.build b/.env.build deleted file mode 100644 index b6f8baf..0000000 --- a/.env.build +++ /dev/null @@ -1,42 +0,0 @@ -S3_ROOT_USER=- -S3_ROOT_PASSWORD=- -S3_BUCKET=- -S3_REGION=- - -PG_USERNAME=- -PG_PASSWORD=- -PG_DATABASE=- - -REDIS_URL=redis://redis:6379/0 - -ENV_FILE=.env.build -HOST=https://cc.sevenc7c.com -FINAL_PORT=8080 -FRONTEND_HOST=https://frontend:3100 -BACKEND_HOST=http://backend:3000 -SUB_CHART_HOST=http://sub-chart:3201 -SUB_AUDIO_HOST=http://sub-audio:3202 -SUB_IMAGE_HOST=http://sub-image:3203 -RAILS_ENABLE_PROXY=false -PG_HOST=postgres - -S3_ENDPOINT=http://minio:9000 - -ADMIN_HANDLE=1073 - -DISCORD_GUILD_ID= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_BOT_TOKEN= -DISCORD_ROLE_ID= -DISCORD_WARNING_CHANNEL_ID= - -SENTRY_DSN_BACKEND= -SENTRY_DSN_FRONTEND= -SENTRY_DSN_SUB_AUDIO= -SENTRY_DSN_SUB_CHART= -SENTRY_DSN_SUB_IMAGE= -SENTRY_ORG= -SENTRY_PROJECT_FRONTEND= -SENTRY_TRACE_SAMPLE_RATE=0.001 -# vim: set ft=sh: diff --git a/.env.example b/.env.example deleted file mode 100644 index 1727e58..0000000 --- a/.env.example +++ /dev/null @@ -1,42 +0,0 @@ -S3_ROOT_USER=minio -S3_ROOT_PASSWORD=secretkey -S3_BUCKET=chcy-dev -S3_REGION=us-east-1 -S3_PUBLIC=false - -PG_USERNAME=postgres -PG_PASSWORD=postgres -PG_DATABASE=chart_cyanvas - -ENV_FILE=.env -REDIS_URL=redis://localhost:6379/0 -LOCALHOST=192.168.1.2 - -FRONTEND_HOST=https://localhost:3100 -BACKEND_HOST=http://localhost:3000 -SUB_SUS_HOST=http://localhost:3201 -SUB_AUDIO_HOST=http://localhost:3202 -SUB_IMAGE_HOST=http://localhost:3203 -RAILS_ENABLE_PROXY=true -PG_HOST=localhost - -S3_ENDPOINT=http://localhost:9000 - -ADMIN_HANDLE=1037 - -DISCORD_GUILD_ID= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_BOT_TOKEN= -DISCORD_ROLE_ID= -DISCORD_WARNING_CHANNEL_ID= - -SENTRY_DSN_BACKEND= -SENTRY_DSN_FRONTEND= -SENTRY_DSN_SUB_AUDIO= -SENTRY_DSN_SUB_CHART= -SENTRY_DSN_SUB_IMAGE= -SENTRY_ORG= -SENTRY_PROJECT_FRONTEND= -SENTRY_TRACE_SAMPLE_RATE=0.001 -# vim: set ft=sh: diff --git a/.env.prod.example b/.env.prod.example deleted file mode 100644 index b190a65..0000000 --- a/.env.prod.example +++ /dev/null @@ -1,44 +0,0 @@ -S3_ROOT_USER=- -S3_ROOT_PASSWORD=- -S3_BUCKET=- -S3_REGION=- -S3_PUBLIC=true - -PG_USERNAME=- -PG_PASSWORD=- -PG_DATABASE=- - -ENV_FILE=.env.prod -REDIS_URL=redis://redis:6379/0 - -HOST=https://example.com -FINAL_PORT=8080 -FRONTEND_HOST=https://frontend:3100 -BACKEND_HOST=http://backend:3000 -SUB_SUS_HOST=http://sub-sus:3201 -SUB_AUDIO_HOST=http://sub-audio:3202 -SUB_IMAGE_HOST=http://sub-image:3203 -RAILS_DISABLE_PROXY=false -PG_HOST=postgres - -S3_ENDPOINT=http://minio:9000 -S3_PUBLIC_HOST=http://example.com - -ADMIN_HANDLE=1073 - -DISCORD_GUILD_ID= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_BOT_TOKEN= -DISCORD_ROLE_ID= -DISCORD_WARNING_CHANNEL_ID= - -SENTRY_DSN_BACKEND= -SENTRY_DSN_FRONTEND= -SENTRY_DSN_SUB_AUDIO= -SENTRY_DSN_SUB_CHART= -SENTRY_DSN_SUB_IMAGE= -SENTRY_ORG= -SENTRY_PROJECT_FRONTEND= -SENTRY_TRACE_SAMPLE_RATE=0.001 -# vim: set ft=sh: diff --git a/.env.test b/.env.test deleted file mode 100644 index ab1bd3c..0000000 --- a/.env.test +++ /dev/null @@ -1,43 +0,0 @@ -S3_ROOT_USER=minio_admin -S3_ROOT_PASSWORD=minio_admin -S3_BUCKET=chart_cyanvas -S3_REGION=us-east-1 - -PG_USERNAME=postgres -PG_PASSWORD=postgres -PG_DATABASE=chart_cyanvas -PG_HOST=localhost -PG_PORT=5432 - -REDIS_URL=redis://localhost:6379/0 - -ENV_FILE=.env.test -HOST=http://localhost:3000 -FINAL_PORT=8080 -FRONTEND_HOST=https://localhost:3100 -BACKEND_HOST=http://localhost:3000 -SUB_SUS_HOST=http://localhost:3201 -SUB_AUDIO_HOST=http://localhost:3202 -SUB_IMAGE_HOST=http://localhost:3203 -RAILS_ENABLE_PROXY=false - -S3_ENDPOINT=http://localhost:9000 - -ADMIN_HANDLE=1073 - -DISCORD_GUILD_ID= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -DISCORD_BOT_TOKEN= -DISCORD_ROLE_ID= -DISCORD_WARNING_CHANNEL_ID= - -SENTRY_DSN_BACKEND= -SENTRY_DSN_FRONTEND= -SENTRY_DSN_SUB_AUDIO= -SENTRY_DSN_SUB_CHART= -SENTRY_DSN_SUB_IMAGE= -SENTRY_ORG= -SENTRY_PROJECT_FRONTEND= -SENTRY_TRACE_SAMPLE_RATE=0.001 -# vim: set ft=sh: diff --git a/.github/workflows/backend-check.yml b/.github/workflows/backend-check.yml index ecaa0f2..0195f96 100644 --- a/.github/workflows/backend-check.yml +++ b/.github/workflows/backend-check.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Get ruby version id: ruby-version run: | @@ -21,6 +21,10 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ steps.ruby-version.outputs.RUBY_VERSION }} + - name: Setup .env + run: | + cp ./config.dev.yml ./config.yml + rake configure # - name: Cache gems # uses: actions/cache@v3 # id: cache-gems diff --git a/.github/workflows/frontend-check.yml b/.github/workflows/frontend-check.yml index 016c4a1..329aadb 100644 --- a/.github/workflows/frontend-check.yml +++ b/.github/workflows/frontend-check.yml @@ -12,13 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - name: Setup .env + run: | + cp ./config.dev.yml ./config.yml + rake configure - name: Setup pnpm uses: pnpm/action-setup@v2 with: version: 8.6.1 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: frontend/.node-version cache: "pnpm" @@ -27,7 +35,6 @@ jobs: - name: Run frontend lint working-directory: ./frontend run: | - cp ../.env.example .env pnpm i pnpm lint diff --git a/.github/workflows/sub-audio-check.yml b/.github/workflows/sub-audio-check.yml index 7938d3d..94dc3fa 100644 --- a/.github/workflows/sub-audio-check.yml +++ b/.github/workflows/sub-audio-check.yml @@ -12,10 +12,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Copy .env - run: cp .env.example .env + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - name: Setup .env + run: | + cp ./config.dev.yml ./config.yml + rake configure - name: Setup python uses: actions/setup-python@v4 diff --git a/.github/workflows/sub-chart-check.yml b/.github/workflows/sub-chart-check.yml index 75d1ce9..e38afd3 100644 --- a/.github/workflows/sub-chart-check.yml +++ b/.github/workflows/sub-chart-check.yml @@ -12,7 +12,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - name: Setup .env + run: | + cp ./config.dev.yml ./config.yml + rake configure - name: Setup pnpm uses: pnpm/action-setup@v2 with: diff --git a/.github/workflows/sub-image-check.yml b/.github/workflows/sub-image-check.yml index 907ef20..9e555bc 100644 --- a/.github/workflows/sub-image-check.yml +++ b/.github/workflows/sub-image-check.yml @@ -15,7 +15,15 @@ jobs: working-directory: ./sub-image steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - name: Setup .env + run: | + cp ./config.dev.yml ./config.yml + rake configure - name: Setup rust run: | rustup component add clippy