forked from caracal-js/Incognito
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from titaniumnetwork-dev/deno
Node => Deno
- Loading branch information
Showing
53 changed files
with
6,123 additions
and
10,303 deletions.
There are no files selected for viewing
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,12 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", | ||
"changelog": ["@changesets/changelog-github", { "repo": "titaniumnetwork-dev/incognito" }], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [], | ||
"privatePackages": { "version": true, "tag": true } | ||
} |
This file was deleted.
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
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,5 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Communtiy Support | ||
url: https://discord.gg/unblock | ||
about: Please ask and answer questions here. | ||
- name: Communtiy Support | ||
url: https://discord.gg/unblock | ||
about: Please ask and answer questions here. |
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,22 +1,14 @@ | ||
* **Please check if the PR fulfills these requirements** | ||
- [ ] Tests for the changes have been added (for bug fixes / features) | ||
- [ ] Docs have been added / updated (for bug fixes / features) | ||
- **Please check if the PR fulfills these requirements** | ||
|
||
* [ ] Tests for the changes have been added (for bug fixes / features) | ||
* [ ] Docs have been added / updated (for bug fixes / features) | ||
|
||
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...) | ||
- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...) | ||
|
||
- **What is the current behavior?** (You can also link to an open issue here) | ||
|
||
- **What is the new behavior (if this is a feature change)?** | ||
|
||
* **What is the current behavior?** (You can also link to an open issue here) | ||
- **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?) | ||
|
||
|
||
|
||
* **What is the new behavior (if this is a feature change)?** | ||
|
||
|
||
|
||
* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?) | ||
|
||
|
||
|
||
* **Other information**: | ||
- **Other information**: |
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,48 +1,48 @@ | ||
name: Build Docker image | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push: | ||
name: Build and push Docker image to registry | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'titaniumnetwork-dev' | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Setup docker buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login To registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.REGISTRY }}/titaniumnetwork-dev/incognito | ||
- name: Build and push | ||
id: build-and-push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./Dockerfile | ||
name: incognito | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
build-and-push: | ||
name: Build and push Docker image to registry | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'titaniumnetwork-dev' | ||
permissions: | ||
contents: write | ||
packages: write | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Setup docker buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login To registry ${{ env.REGISTRY }} | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.REGISTRY }}/titaniumnetwork-dev/incognito | ||
- name: Build and push | ||
id: build-and-push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./Dockerfile | ||
name: incognito | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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,44 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
FORCE_COLOR: true | ||
|
||
jobs: | ||
changelog: | ||
name: Release TAG | ||
if: ${{ github.repository_owner == 'titaniumnetwork-dev' }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: 2.1.4 | ||
|
||
- name: Install dependencies | ||
run: deno install --allow-scripts | ||
|
||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
version: deno task changeset:version | ||
publish: deno task changeset:publish | ||
commit: "[ci] release" | ||
title: "[ci] release" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -17,6 +17,9 @@ pnpm-debug.log* | |
.env | ||
.env.production | ||
|
||
#Config stuff | ||
config.toml | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
|
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,35 @@ | ||
# 1.0.0 | ||
- The initial rewrite to Astro. Includes: | ||
- Fully static | ||
- Easier to build | ||
- Feels/is faster to use | ||
- Fixes some bugs | ||
- Among tons of other stuff | ||
|
||
# 1.0.1 | ||
- Fixes the games and apps page looking weird | ||
|
||
# 1.0.2 | ||
- Fixes Dockerfile issues | ||
|
||
# 1.0.3 | ||
- Turns off Rammerhead by default for now | ||
- Docker env fixes again | ||
- SEO | ||
|
||
# 1.0.4 | ||
- Bumps RH | ||
- Fixes issues with bare-server-node | ||
|
||
# 1.1.0 | ||
- Switches to Deno (mostly) | ||
- General bug fixes | ||
- Removes Rammerhead as an option and replaces it with Scramjet (coming soon) | ||
- Removes bare server and adds libcurl as an option | ||
- Adds a different Deno native server (Hono) - Command: `deno task start:standalone` | ||
- Removes Masqr | ||
- No more SSR, it's purely statically generated | ||
- CI fixes and other general improvements | ||
- Configuration is done via TOML over a bunch of environment vars | ||
- Removes Biome in place of Deno's native formatter | ||
- A better roadmap of what should be done in the future. |
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,16 +1,19 @@ | ||
FROM node:21-alpine | ||
FROM denoland/deno:debian-2.1.4 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json . | ||
COPY deno.jsonc . | ||
COPY . . | ||
|
||
RUN apk update | ||
RUN apk add python3 py3-pip alpine-sdk openssl-dev build-base python3-dev | ||
RUN python3 -m pip install setuptools --break-system-packages | ||
RUN npm i -g pnpm | ||
RUN pnpm install | ||
RUN pnpm run build | ||
EXPOSE 8080 | ||
ENTRYPOINT ["pnpm"] | ||
CMD ["start"] | ||
RUN apt update | ||
RUN apt install -y python3 python3-pip libssl-dev build-essential python3-dev nodejs | ||
RUN cp -n config.example.toml config.toml | ||
RUN deno install --allow-scripts | ||
RUN deno task build | ||
RUN export TERM=xterm-256color | ||
ENV PORT="8000" # this is to make sure it's set at 8000. | ||
VOLUME /app | ||
EXPOSE 8000 | ||
ENTRYPOINT ["deno", "task"] | ||
CMD ["start", "--color"] |
Oops, something went wrong.