From 09d1f0b88cac5180615619a2685a7f252d71684c Mon Sep 17 00:00:00 2001 From: Nathan Young Date: Thu, 17 Sep 2026 14:15:38 -0600 Subject: [PATCH] Moving around files and adding readme --- .../scripts/update_dockerhub_api | 0 .gitea/workflows/docker_build.yml | 2 +- Dockerfile | 8 ++- README.md | 54 +++++++++++++++++++ 4 files changed, 62 insertions(+), 2 deletions(-) rename update_dockerhub_api => .gitea/scripts/update_dockerhub_api (100%) create mode 100644 README.md diff --git a/update_dockerhub_api b/.gitea/scripts/update_dockerhub_api similarity index 100% rename from update_dockerhub_api rename to .gitea/scripts/update_dockerhub_api diff --git a/.gitea/workflows/docker_build.yml b/.gitea/workflows/docker_build.yml index 6ba3f44..f4cf9b9 100644 --- a/.gitea/workflows/docker_build.yml +++ b/.gitea/workflows/docker_build.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - run: | - ./update_dockerhub_api \ + ./.gitea/scripts/update_dockerhub_api \ ${{ secrets.DOCKERHUB_USERNAME }} \ ${{ secrets.DOCKERHUB_PASSWORD }} \ ${{ gitea.repository }} \ diff --git a/Dockerfile b/Dockerfile index a6c7296..949dd42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,13 @@ FROM python:3-alpine3.15 WORKDIR /app # Install the application dependencies -COPY . ./ +# COPY . ./ +COPY happy_ripper.py ./ +COPY requirements.txt ./ +COPY templates ./ +COPY .env ./ + + RUN pip install --no-cache-dir -r requirements.txt RUN apk add --no-cache ffmpeg diff --git a/README.md b/README.md new file mode 100644 index 0000000..afc52ae --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ +# better_ripper +### Not actually better, literally a copy + +___ + +This is mostly a showcase repository to show off automatic gitea actions + +### Setup + +#### Make a gitea runner (can run on your main machine) +[Gitea's guide](https://docs.gitea.com/usage/actions/quickstart/) + +#### Get gitea api key +If you wanna test this out for yourself, you first need to get a gitea API key by going to: +`Settings > Applications > Generate New Token` +Make sure to copy the token before you navigate off the page + +#### Make a docker hub account +Make an account at https://hub.docker.com, you're gonna need both the username and password + +#### Add gitea repository secrets +Go to your gitea repository and go to: +`Settings > Actions > Secrets` +And make three new tokens: + +- API_KEY + - The api key you copied from gitea (if you didn't copy it before navigating away from the page you will need to make a new one) +- DOCKERHUB_USERNAME + - Your docker hub username +- DOCKERHUB_PASSWORD + - Your docker hub password +(optional) +- DOCKERHUB_TOKEN + - Your docker hub token (will be automatically made/updated with `./gitea/update_dockerhub_api`) + +#### Copy `.gitea` files +The main files you need are: +- `.gitea/scripts/update_dockerhub_api` +- `.gitea/workflows/docker_build.yml` + +I recommend just putting them in your repository in the same file structure + +___ + +And now your repository should automatically build itself according to it's `Dockerfile` + +#### Troubleshooting +If your don't see any new actions starting, make sure that your runner daemon is active. And make sure that in the `.gitea/workflows/docker_build.yml` file that you are triggering actions for the correct branch name, as right now it only triggers for branch pushes to ones named "master" + +If your actions break midway through, make sure that your gitea repository secrets are set properly and you are not being upload-limited by https://hub.docker.com + +If none of those work, please [fill out an issue](https://gitea.happylizard.me/pizza2d1/better_ripper/issues/new) with your `.gitea` files (even though they shouldn't need to be modified) + +