Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

V3 #32

Merged
merged 34 commits into from
Aug 11, 2024
Merged

V3 #32

Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
91f4b7d
Initial commit
Zibbp Jul 5, 2024
a579901
update admin info page
Zibbp Jul 8, 2024
a8f3604
feat(queue): restart tasks support
Zibbp Jul 11, 2024
37bcd5a
use new twitch route
Zibbp Jul 16, 2024
b22ba78
update category route
Zibbp Jul 20, 2024
452ca83
blocked video support
Zibbp Jul 25, 2024
14d147b
support categories with live streams
Zibbp Jul 26, 2024
6387a01
remove workflows page
Zibbp Jul 27, 2024
1893599
add ability to stop and delete queue items
Zibbp Jul 27, 2024
ba087b7
all-in-one settings page
Zibbp Jul 28, 2024
dd72c11
new docker ci
Zibbp Jul 28, 2024
460c263
test
Zibbp Jul 28, 2024
81697b3
test
Zibbp Jul 28, 2024
c36e1ee
test
Zibbp Jul 28, 2024
392a872
test
Zibbp Jul 28, 2024
a225123
test
Zibbp Jul 28, 2024
480fa52
test
Zibbp Jul 28, 2024
890d009
test
Zibbp Jul 28, 2024
3144c80
test
Zibbp Jul 28, 2024
ac52b16
test
Zibbp Jul 28, 2024
41be228
test
Zibbp Jul 28, 2024
a21c5c9
test
Zibbp Jul 28, 2024
d78c0d8
test
Zibbp Jul 28, 2024
0840cb4
test
Zibbp Jul 28, 2024
cdd357e
test
Zibbp Jul 28, 2024
6e5d55e
fix
Zibbp Jul 28, 2024
233ed0b
fix
Zibbp Jul 28, 2024
784426f
include channel name in queue table
Zibbp Jul 28, 2024
0454a60
fix overlay z-index
Zibbp Jul 28, 2024
60ecebd
allow blocking video ids when deleting a video
Zibbp Jul 28, 2024
c64809b
feat: regenerate static thumbnail button
Zibbp Aug 2, 2024
9eacbdd
feat(VideoCard): fetch playback data inside card
Zibbp Aug 6, 2024
8cb4952
calculate progress
Zibbp Aug 6, 2024
41db32f
remove temp push logic for beta
Zibbp Aug 10, 2024
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
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Ganymede Frontend",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-20",
"image": "mcr.microsoft.com/devcontainers/typescript-node:20",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand All @@ -16,7 +16,9 @@
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens"
"eamodio.gitlens",
"vunguyentuan.vscode-postcss",
"vunguyentuan.vscode-css-variables"
]
}
}
Expand Down
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ Dockerfile
node_modules
npm-debug.log
README.md
.next
.next
!.next/static
!.next/standalone
56 changes: 23 additions & 33 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,55 +22,45 @@ env:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4

# Set up QEMU for Arm64
- name: Set up QEMU
uses: docker/[email protected]
with:
platforms: all
uses: docker/setup-qemu-action@v3

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.2.1
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
# Login into GitHub Container Registry except on PR
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2.1.0
# if: github.event_name != 'pull_request' TODO: remove this line
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
- name: Extract Docker metadata (release)
id: meta
uses: docker/metadata-action@v4.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
tags: |
type=semver,pattern={{version}}
type=raw,value=dev

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/[email protected]
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
provenance: false
cache-from: type=gha,scope=${{ env.IMAGE_NAME }}
cache-to: type=gha,scope=${{ env.IMAGE_NAME }},mode=max
push: true # TODO: remove this line
# push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
context: .
dockerfile: ./Dockerfile
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"cssVariables.lookupFiles": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"node_modules/@mantine/core/styles.css"
]
}
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG GITHUB_SHA

# Install dependencies only when needed
FROM node:18-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
Expand All @@ -8,6 +10,9 @@ RUN npm install

# Rebuild the source code only when needed
FROM node:18-alpine AS builder

ENV NEXT_PUBLIC_GIT_COMMIT=$GITHUB_SHA

RUN apk add --no-cache git
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
Expand All @@ -20,7 +25,6 @@ RUN npm i sharp -y

RUN npm run build


# Production image, copy all the files and run next
FROM node:18-alpine AS runner
WORKDIR /app
Expand Down
Loading
Loading