Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
52 changes: 52 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Dependency directories
node_modules/
.next/ # Built Next.js files (rebuilt in Docker)

# Build and CI files
dist/
coverage/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Environment files (except production)
.env*
!.env.production # Whitelist production env file

# IDE and editor configs
.idea/
.vscode/
*.swp
*.swo

# Git files
.git/
.gitignore

# TypeScript cache and output
.tsbuildinfo
*.tsbuildinfo

# Test and debug files
test/
tests/
__tests__/
*.test.ts
*.spec.ts

# Documentation
docs/
*.md

# Docker files (avoid recursive copies)
Dockerfile
.dockerignore

# macOS metadata
.DS_Store

# Optional: Exclude large assets (if not needed in production)
*.psd
*.ai
*.zip
44 changes: 44 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Push to GHCR

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

env:
IMAGE_NAME: nuvio-streams

jobs:
build-and-push:
runs-on: ubuntu-latest

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

- name: Set up QEMU (for ARM support)
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64,linux/arm64

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # Auto-generated GitHub token

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/master' }}
provenance: false
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }}