From b3febb5616252fe7e1e9c4c757e02f886f403c2e Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 2 Dec 2023 15:13:31 +0300 Subject: [PATCH 1/2] added docker hub --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f88b6011..3d631e65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,8 @@ on: - ".github/ISSUE_TEMPLATE/**" env: + DOCKERHUB_SLUG: arabcoders/ytptube + GHCR_SLUG: ghcr.io/arabcoders/ytptube PLATFORMS: linux/amd64 jobs: @@ -53,7 +55,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository }} + images: | + ${{ env.DOCKERHUB_SLUG }} + ${{ env.GHCR_SLUG }} tags: | type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} type=ref,event=branch @@ -69,6 +73,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push uses: docker/build-push-action@v5 with: @@ -79,3 +89,19 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha, scope=${{ github.workflow }} cache-to: type=gha, scope=${{ github.workflow }} + + dockerhub-sync-readme: + needs: push-build + runs-on: ubuntu-latest + steps: + - name: Sync README + uses: docker://lsiodev/readme-sync:latest + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} + GIT_REPOSITORY: ${{ github.repository }} + DOCKER_REPOSITORY: ${{ env.DOCKERHUB_SLUG }} + GIT_BRANCH: master + with: + entrypoint: node + args: /opt/docker-readme-sync/sync From 7bb8cf31837398173390d123db5918251c2398a4 Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sat, 2 Dec 2023 15:19:03 +0300 Subject: [PATCH 2/2] updated README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 379c9bfb..a30fd1e0 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Your `yt-dlp` config should include the following options for optimal working co ``` * Note, the `format_sort`, forces YouTube to use x264 instead of vp9 codec, you can ignore it if you want. i prefer the media in x264. -[![Short screenshot](/sc_short.png)](/sc_full.png) +[![Short screenshot](https://raw.githubusercontent.com/ArabCoders/ytptube/master/sc_short.png)](https://raw.githubusercontent.com/ArabCoders/ytptube/master/sc_full.png) ## Run using Docker @@ -143,3 +143,8 @@ A Docker image can be built locally (it will build the UI too): ```bash docker build . -t ytptube ``` + +# Donation + +If you feel like donating and appreciate my work, you can do so by donating to children charity. For example [Make-A-Wish](https://worldwish.org). +I Personally don't need the money, but I do appreciate the gesture. Making a child happy is more worthwhile.