Compare commits

..

No commits in common. "main" and "turquoise" have entirely different histories.

210 changed files with 2196 additions and 1714 deletions

47
.dockerignore Normal file
View file

@ -0,0 +1,47 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Development files
*.md
.git/
.gitignore
# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Editor files
.vscode/
.idea/
*.swp
*.swo
# Logs
logs
*.log
# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# CI/CD
.forgejo/
.github/
# Other
coverage/
.nyc_output/
# Built files (will be built inside Docker)
dist/

View file

@ -1,10 +0,0 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{js,json,.yml}]
charset = utf-8
indent_style = space
indent_size = 2

8
.env.example Normal file
View file

@ -0,0 +1,8 @@
# Copy to .env and fill in your secrets
# These are used by the Bun/Elysia server to fetch your current/last played track from Last.fm
LASTFM_API_KEY=
LASTFM_USERNAME=
# Optional
PORT=3000
NODE_ENV=development

View file

@ -3,7 +3,7 @@ name: Build and Push Docker Image
on: on:
push: push:
branches: branches:
- main # Adjust if your main branch is different - turquoise
tags: tags:
- 'v*.*.*' # Trigger on version tags - 'v*.*.*' # Trigger on version tags
@ -26,14 +26,6 @@ jobs:
with: with:
fetch-depth: 0 # Recommended for metadata action fetch-depth: 0 # Recommended for metadata action
- name: Install pnpm dependencies
run: pnpm i
shell: sh
- name: Build project
run: pnpm run build
shell: sh
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -55,7 +47,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASE_NAME }}
tags: | tags: |
# Use 'github.ref' for branch/tag detection # Use 'github.ref' for branch/tag detection
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} # Adjust 'main' if needed type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'turquoise') }}
type=ref,event=branch type=ref,event=branch
type=ref,event=tag type=ref,event=tag
type=sha,format=short # Tag with short Git SHA type=sha,format=short # Tag with short Git SHA
@ -65,11 +57,11 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.ref.name=${{ github.ref_name }} org.opencontainers.image.ref.name=${{ github.ref_name }}
- name: Build and push Docker image - name: Build and push minimal Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile # Uses the Alpine-based minimal container
push: true push: true
tags: ${{ steps.meta.outputs.tags }} # Use tags from metadata step tags: ${{ steps.meta.outputs.tags }} # Use tags from metadata step
labels: ${{ steps.meta.outputs.labels }} # Use labels from metadata step labels: ${{ steps.meta.outputs.labels }} # Use labels from metadata step

1
.gitattributes vendored
View file

@ -1 +0,0 @@
/.yarn/** linguist-vendored

30
.gitignore vendored
View file

@ -1,5 +1,27 @@
node_modules # Logs
docker-compose.yml logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
www/extra node_modules
www/css/style.css dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Environment variables
.env

Some files were not shown because too many files have changed in this diff Show more