diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ae6399b --- /dev/null +++ b/.github/dependabot.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cb9e5a5 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a2cc37 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2e849db --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +gallery-dl==1.24.4 \ No newline at end of file