Add initial files

This commit is contained in:
Brandon Moss 2023-01-15 23:32:12 +00:00
parent 1a50088e9f
commit 212ac2d9e6
4 changed files with 60 additions and 0 deletions

15
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
assignees:
- "brandonmoss-99"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
assignees:
- "brandonmoss-99"

31
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Build
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-22.04
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/gallery-dl:latest

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM python:3.11.1-slim-buster
LABEL org.opencontainers.image.source=https://github.com/brandonmoss-99/gallery-dl-docker
LABEL org.opencontainers.image.description="gallery-dl, in Docker"
LABEL org.opencontainers.image.licenses=GPL-2.0-only
RUN apt-get update && apt-get install tini
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
# Run gallery-dl
ENTRYPOINT [ "/usr/bin/tini", "--", "gallery-dl" ]

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
gallery-dl==1.24.4