Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
0717b5d
641: wip
tahminator Jan 16, 2026
9f30e99
641: wip pt2
tahminator Jan 16, 2026
3337b03
641: wip pt3
tahminator Jan 16, 2026
a6819a7
641: blee bloo bleeeeeeee
tahminator Jan 16, 2026
07f39cf
641: blee bloo bleeeeeeee wefklfkenfwekjnfg
tahminator Jan 16, 2026
9e2b54a
641: blee
tahminator Jan 16, 2026
621a177
641: lsdfnsdgvlndefblnerb
tahminator Jan 16, 2026
ca9932c
641: neenurrr
tahminator Jan 16, 2026
d9dd8f0
641: attempt
tahminator Jan 16, 2026
cfa852a
641: try to fix messed up leetcodeclienttest
tahminator Jan 16, 2026
f21616f
641: wip
tahminator Jan 18, 2026
88464c9
641: remove testing from stg for now
tahminator Jan 18, 2026
9519240
641: fix
tahminator Jan 18, 2026
31884c4
641: DszTgNsN9sR5qtiD1kE2O8txI67JPdx/HBuu7V9/0trND/kMLqDe/L4TEShd+uX1
tahminator Jan 18, 2026
0b57e58
641: dbED/o8z4bDHFV8WlfXEEa2K7IFohTBOkPs3QP1dg9vtYHcZDNRiLuzDZ1vhznvf
tahminator Jan 18, 2026
cc7cee1
641: 8bTjM6aBNpPwyo9PgBAOeZPUK2KuuI7IhUvZGwscjLjvL/XyhVyiwL9IJvfphKCR
tahminator Jan 18, 2026
d5726f8
641: 8bTjM6aBNpPwyo9PgBAOeZPUK2KuuI7IhUvZGwscjLjvL/XyhVyiwL9IJvfphKCR…
tahminator Jan 18, 2026
da7ce99
641:
tahminator Jan 18, 2026
f1bcd60
641: fkwnfwkf
tahminator Jan 18, 2026
8e8945c
641: wfwfnewkgfnekrg
tahminator Jan 18, 2026
b9b14a4
641: remove rebuilding from stg for now
tahminator Jan 18, 2026
12dd684
641: wip
tahminator Jan 18, 2026
f01fed7
641: wip
tahminator Jan 18, 2026
ca6656e
641: wip2
tahminator Jan 18, 2026
738aa5a
641: wip3
tahminator Jan 18, 2026
499ff03
641:
tahminator Jan 18, 2026
1b8a1f9
641:
tahminator Jan 18, 2026
744415d
641: fwl
tahminator Jan 18, 2026
4e2cba7
641: fwlfewf
tahminator Jan 18, 2026
a76ef88
641: ewkfnwkfb
tahminator Jan 18, 2026
1fa26c9
641: ewkfnwkfbwefowlg
tahminator Jan 18, 2026
1485760
641:
tahminator Jan 18, 2026
6ba4364
641: here goes nothing
tahminator Jan 18, 2026
67e955f
641: here goes nothing pt2
tahminator Jan 18, 2026
32d53de
641: attempt to add deployment check logic
tahminator Jan 19, 2026
d194089
641: test to make sure it deploys
tahminator Jan 19, 2026
26fb044
641:
tahminator Jan 19, 2026
efcd4c1
641:
tahminator Jan 19, 2026
ea01e49
641:
tahminator Jan 19, 2026
77f49b7
641:
tahminator Jan 19, 2026
0da982a
641:
tahminator Jan 19, 2026
4123ba6
641:
tahminator Jan 19, 2026
26e18d6
641: fn
tahminator Jan 19, 2026
77566ef
641: test db change
tahminator Jan 19, 2026
4b981d6
641: t
tahminator Jan 19, 2026
67e2391
641: tf
tahminator Jan 19, 2026
04841ba
641: tff
tahminator Jan 19, 2026
8c111ed
641: tffvfrgswfgnkerg
tahminator Jan 19, 2026
a5a78e9
641: remove test db file
tahminator Jan 19, 2026
f094b45
641: ble
tahminator Jan 19, 2026
ca450f4
641: blebe
tahminator Jan 19, 2026
0086828
641: blebefewg
tahminator Jan 19, 2026
9292ab8
641: blebefewgwgbewrg
tahminator Jan 19, 2026
a874c12
641:
tahminator Jan 19, 2026
dd978a6
641: debug
tahminator Jan 19, 2026
ba4babc
641: debug2
tahminator Jan 19, 2026
82ade02
641: debug3
tahminator Jan 19, 2026
add5062
641: debug4
tahminator Jan 19, 2026
fa170af
641: gk3ng3g
tahminator Jan 19, 2026
9d0ac62
641: gk3ng3g
tahminator Jan 19, 2026
f99f578
641: wgerg
tahminator Jan 19, 2026
dacd640
641:
tahminator Jan 19, 2026
b845ff2
641:
tahminator Jan 19, 2026
b4d67fb
641:
tahminator Jan 19, 2026
3ece3fe
641:fkbwefkew
tahminator Jan 19, 2026
5c8eb1a
641:fkbwefkew
tahminator Jan 19, 2026
4681e9f
641: meowwwwww
tahminator Jan 19, 2026
930558d
641: meowwwwwwwdfwbnrbwgw
tahminator Jan 19, 2026
8b7bf30
641:
tahminator Jan 19, 2026
40ac2ed
641:
tahminator Jan 19, 2026
4dab648
641:
tahminator Jan 19, 2026
88bb7cc
641:
tahminator Jan 19, 2026
a93abed
641:
tahminator Jan 19, 2026
c5076a3
641:
tahminator Jan 19, 2026
c30feea
641:
tahminator Jan 19, 2026
955aa15
641:
tahminator Jan 19, 2026
ee3f3b4
641: test
tahminator Jan 19, 2026
007afdb
641: test
tahminator Jan 19, 2026
802418e
641: test pt2
tahminator Jan 19, 2026
193af7b
641: test pt3
tahminator Jan 19, 2026
c3596ab
641: test pt4
tahminator Jan 19, 2026
c305ae4
641: test pt5
tahminator Jan 19, 2026
aede658
641: test pt6
tahminator Jan 19, 2026
db6f558
641: test pt67
tahminator Jan 19, 2026
3c20f15
641: test pt68
tahminator Jan 19, 2026
fb6d316
641: test pt69
tahminator Jan 19, 2026
153176e
641: test pt70
tahminator Jan 19, 2026
291cc7d
641: test pt80
tahminator Jan 19, 2026
1d4e61a
641: test pt81
tahminator Jan 19, 2026
f089861
641: test pt82
tahminator Jan 19, 2026
273a953
641: test pt83
tahminator Jan 19, 2026
3219f77
641: test pt84
tahminator Jan 19, 2026
c22dd06
641: test pt85
tahminator Jan 19, 2026
322e07d
641: test pt86
tahminator Jan 19, 2026
bdd3e47
641: testing 3
tahminator Jan 19, 2026
013a545
641: testingggg
tahminator Jan 19, 2026
85d8229
641: fixes
tahminator Jan 19, 2026
e8e796f
641: fixes2
tahminator Jan 19, 2026
2c271c2
641: fixes3
tahminator Jan 19, 2026
04667c1
641: fixes4
tahminator Jan 19, 2026
c12aa3c
641: fixes5
tahminator Jan 19, 2026
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
93 changes: 93 additions & 0 deletions .do/specs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import type {
App_service_spec,
App_spec,
Apps_image_source_spec,
App_variable_definition,
} from "../.github/scripts/node_modules/@digitalocean/dots";

const DIGITALOCEAN_BASE_IMAGE: Apps_image_source_spec = {
registry: "tahminator",
registryType: "DOCKER_HUB",
repository: "codebloom",
// override tag
tag: "latest",
};

const DIGITALOCEAN_BASE_SERVICE: App_service_spec = {
name: "codebloom",
healthCheck: {
failureThreshold: 9,
httpPath: "/api",
periodSeconds: 10,
successThreshold: 1,
timeoutSeconds: 1,
},
livenessHealthCheck: {
failureThreshold: 9,
httpPath: "/api",
periodSeconds: 10,
successThreshold: 1,
timeoutSeconds: 1,
},
httpPort: 8080,
instanceCount: 1,
instanceSizeSlug: "apps-s-1vcpu-1gb-fixed",
};

const DIGITALOCEAN_BASE_SPEC: App_spec = {
region: "nyc",
ingress: {
rules: [
{
component: {
name: "codebloom",
},
match: {
path: {
prefix: "/",
},
},
},
],
},
};

export function prodSpec(envs: App_variable_definition[]): App_spec {
return {
...DIGITALOCEAN_BASE_SPEC,
name: "codebloom-prod",
services: [
{
...DIGITALOCEAN_BASE_SERVICE,
image: {
...DIGITALOCEAN_BASE_IMAGE,
tag: "latest",
},
envs,
},
],
};
}

export function stgSpec(envs: App_variable_definition[]): App_spec {
return {
...DIGITALOCEAN_BASE_SPEC,
name: "codebloom-staging",
services: [
{
...DIGITALOCEAN_BASE_SERVICE,
image: {
...DIGITALOCEAN_BASE_IMAGE,
tag: "staging-latest",
},
envs,
},
],
domains: [
{
domain: "stg.codebloom.patinanetwork.org",
type: "PRIMARY",
},
],
};
}
Binary file modified .env.ci
Binary file not shown.
56 changes: 56 additions & 0 deletions .github/composite/build-image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "Build & Upload Docker Image"
description: "Build & (optionally) upload Docker Image to Docker Registry"

inputs:
GPG_PRIVATE_KEY:
description: "GPG Private Key"
required: true
GPG_PASSPHRASE:
description: "GPG Passphrase"
required: true
DOCKER_UPLOAD:
description: "Boolean indicating whether the image should be uploaded to Docker registry or not."
required: false
default: true
TAG_PREFIX:
description: "Docker tags prefix"
required: false
SERVER_PROFILES:
description: "Profile(s) to apply to Codebloom instance."
required: false
default: prod

runs:
using: "composite"
steps:
- name: Setup CI
uses: ./.github/composite/setup-ci
with:
GPG_PRIVATE_KEY: ${{ inputs.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ inputs.GPG_PASSPHRASE }}

- name: Set up pnpm
uses: pnpm/action-setup@master
with:
version: 10.24.0
cache: true
cache_dependency_path: js/pnpm-lock.yaml
package_json_file: js/package.json

- name: Set up OpenJDK 25
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "25"
cache: "maven"

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3

- name: Run script
shell: bash
run: bun .github/scripts/build-image
env:
DOCKER_UPLOAD: ${{ inputs.DOCKER_UPLOAD }}
TAG_PREFIX: ${{ inputs.TAG_PREFIX }}
SERVER_PROFILES: ${{ inputs.SERVER_PROFILES }}
66 changes: 0 additions & 66 deletions .github/composite/check-notion-commits/action.yml

This file was deleted.

Loading
Loading