Skip to content

Commit

Permalink
Merge pull request #5 from dreulavelle/main
Browse files Browse the repository at this point in the history
Comet Restructure/Refactor
  • Loading branch information
g0ldyy authored Jun 29, 2024
2 parents befb2a0 + 4afa356 commit c7bde00
Show file tree
Hide file tree
Showing 23 changed files with 3,982 additions and 3,512 deletions.
15 changes: 9 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.github/
.env*
.gitignore
Dockerfile
LICENSE
README.md
.github/
*.env*
.gitignore
Dockerfile
LICENSE
*.md
docker-compose*.*
.vscode/
config.json
26 changes: 13 additions & 13 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FASTAPI_HOST=0.0.0.0
FASTAPI_PORT=8000
FASTAPI_WORKERS=1 # remove to destroy CPU -> max performances
DATABASE_PATH=customFolder/database.db # REMOVE IF YOU DON'T KNOW WHAT THIS IS - folders in path must exist
CACHE_TTL=86400
DEBRID_PROXY_URL=http://127.0.0.1:1080
INDEXER_MANAGER_TYPE=jackett # or prowlarr
INDEXER_MANAGER_URL=http://127.0.0.1:9117
INDEXER_MANAGER_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
INDEXER_MANAGER_INDEXERS=INDEXER_NAME_CHANGETHIS1,INDEXER_NAME_CHANGETHIS2
INDEXER_MANAGER_TIMEOUT=30
GET_TORRENT_TIMEOUT=5
CUSTOM_HEADER_HTML=
FASTAPI_HOST=0.0.0.0
FASTAPI_PORT=8000
FASTAPI_WORKERS=1 # remove to destroy CPU -> max performances
DATABASE_PATH=customFolder/database.db # REMOVE IF YOU DON'T KNOW WHAT THIS IS - folders in path must exist
CACHE_TTL=86400
DEBRID_PROXY_URL=http://127.0.0.1:1080
INDEXER_MANAGER_TYPE=jackett # or prowlarr
INDEXER_MANAGER_URL=http://127.0.0.1:9117
INDEXER_MANAGER_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
INDEXER_MANAGER_INDEXERS=INDEXER_NAME_CHANGETHIS1,INDEXER_NAME_CHANGETHIS2
INDEXER_MANAGER_TIMEOUT=30
GET_TORRENT_TIMEOUT=5
CUSTOM_HEADER_HTML=
112 changes: 56 additions & 56 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
name: Docker Build and Push

on:
push:
branches:
- main
# release:
# types: [created]
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
security-events: write

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v3
id: qemu
with:
platforms: amd64,arm64

- name: Log into ghcr.io registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/g0ldyy/comet:latest
docker.io/g0ldyy/comet:latest
name: Docker Build and Push

on:
push:
branches:
- main
# release:
# types: [created]
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
security-events: write

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v3
id: qemu
with:
platforms: amd64,arm64

- name: Log into ghcr.io registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/[email protected]

- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/g0ldyy/comet:latest
docker.io/g0ldyy/comet:latest
Loading

0 comments on commit c7bde00

Please sign in to comment.