Skip to content

Commit fe79063

Browse files
committed
minimal extensions
1 parent b8cc9a7 commit fe79063

98 files changed

Lines changed: 102 additions & 29581 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!build/

.github/workflows/build-image.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Build image
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [master, minimal]
7+
8+
concurrency:
9+
group: "build-image-${{ github.ref }}"
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build-image:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
persist-credentials: false
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: npm
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build for production
36+
run: npm run build
37+
38+
- name: Choose image name
39+
id: image
40+
run: |
41+
owner=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
42+
if [ "${{ github.ref_name }}" = "minimal" ]; then
43+
echo "name=ghcr.io/${owner}/blockextensions-minimal" >> "$GITHUB_OUTPUT"
44+
else
45+
echo "name=ghcr.io/${owner}/blockextensions" >> "$GITHUB_OUTPUT"
46+
fi
47+
48+
- name: Log in to GitHub Container Registry
49+
uses: docker/login-action@v3
50+
with:
51+
registry: ghcr.io
52+
username: ${{ github.actor }}
53+
password: ${{ secrets.GITHUB_TOKEN }}
54+
55+
- name: Collect image metadata
56+
id: meta
57+
uses: docker/metadata-action@v5
58+
with:
59+
images: ${{ steps.image.outputs.name }}
60+
tags: |
61+
type=sha,format=short,prefix=sha-
62+
type=raw,value=latest
63+
64+
- name: Set up Buildx
65+
uses: docker/setup-buildx-action@v3
66+
67+
- name: Build and push image
68+
uses: docker/build-push-action@v6
69+
with:
70+
context: .
71+
file: docker/Dockerfile
72+
push: true
73+
provenance: false
74+
tags: ${{ steps.meta.outputs.tags }}
75+
labels: ${{ steps.meta.outputs.labels }}
76+
build-args: |
77+
SOURCE_URL=${{ github.server_url }}/${{ github.repository }}
78+
REVISION=${{ github.sha }}

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515

16-
# If you are forking and want to set up your own website, adjust the repository and branch
17-
# below to match your repository or remove the condition entirely.
18-
if: ${{ github.repository == 'TurboWarp/extensions' && github.ref == 'refs/heads/master' }}
16+
if: ${{ github.repository == 'CodeTorchNET/CodeTorch-Block-Extensions' && github.ref == 'refs/heads/master' }}
1917

2018
steps:
2119
- name: Checkout

docker/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM busybox:1.36
2+
3+
LABEL org.opencontainers.image.title="CodeTorch Block Extensions gallery"
4+
LABEL org.opencontainers.image.description="Static build of the CodeTorch extension gallery, served by copying /build into a shared volume."
5+
LABEL org.opencontainers.image.licenses="MIT"
6+
7+
ARG SOURCE_URL
8+
ARG REVISION
9+
LABEL org.opencontainers.image.source="${SOURCE_URL}"
10+
LABEL org.opencontainers.image.revision="${REVISION}"
11+
12+
COPY build/ /build/

extension-dependencies.json

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,3 @@
11
{
2-
"dependencies": {
3-
"https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229/face_detection.js": {
4-
"sha256": "464efd192f197f1000ab60bedde235f349b8ee2967e1443cc3a29cebf42cbce2",
5-
"contentType": "application/javascript; charset=utf-8"
6-
},
7-
"https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229/face_detection_short.binarypb": {
8-
"sha256": "771c6b632d5ba58a41d3160abfd80185a1d18081f52bcefc5baec9f3d10aa8d9",
9-
"contentType": "application/octet-stream"
10-
},
11-
"https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229/face_detection_short_range.tflite": {
12-
"sha256": "3bc182eb9f33925d9e58b5c8d59308a760f4adea8f282370e428c51212c26633",
13-
"contentType": "application/octet-stream"
14-
},
15-
"https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229/face_detection_solution_simd_wasm_bin.js": {
16-
"sha256": "ac6721ba5e4ddba4b145116e5012a0e2536c95cd814230e7095fbda78c4e46b7",
17-
"contentType": "application/javascript; charset=utf-8"
18-
},
19-
"https://cdn.jsdelivr.net/npm/@mediapipe/face_detection@0.4.1646425229/face_detection_solution_simd_wasm_bin.wasm": {
20-
"sha256": "ed927313be5ead0002008a7bc18177ecd342c60fd75795e4611fb44e19c4745b",
21-
"contentType": "application/wasm"
22-
},
23-
"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@4.22.0/dist/tf-backend-webgl.min.js": {
24-
"sha256": "b41fcbb4aee7721af0cc77ecfede60b44ad4ed6d5782a8392b84f774f4359a45",
25-
"contentType": "application/javascript; charset=utf-8"
26-
},
27-
"https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.22.0/dist/tf-core.min.js": {
28-
"sha256": "0924438788ff7da57b14d0f7c45a05d81611a5a4b52653da6d065e86d348757c",
29-
"contentType": "application/javascript; charset=utf-8"
30-
},
31-
"https://cdn.jsdelivr.net/npm/@turbowarp/tensorflow-models-face-detection@1.0.3-tw1/dist/face-detection.min.js": {
32-
"sha256": "3faf18f98df4270e0a945f2ad67d5ab6f43d6e625e0b3f2c3bcfcd1e6330ab57",
33-
"contentType": "application/javascript; charset=utf-8"
34-
},
35-
"https://cdn.jsdelivr.net/npm/lz-string@1.5.0/libs/lz-string.min.js": {
36-
"sha256": "95f4d1cbf099f57161b664bc048426ec3df92637801a4c79116e83315aa787e7",
37-
"contentType": "application/javascript; charset=utf-8"
38-
}
39-
}
2+
"dependencies": {}
403
}

extensions/-SIPC-/recording.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)