Skip to content

Commit

Permalink
Merge pull request #1 from M4RC02U1F4A4/react
Browse files Browse the repository at this point in the history
Move to react
  • Loading branch information
M4RC02U1F4A4 authored Jan 19, 2024
2 parents 0f2180c + 9c1b3a5 commit f955a1d
Show file tree
Hide file tree
Showing 49 changed files with 29,165 additions and 824 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: New release

on:
release:
types: [published]

jobs:
backend-build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Build Docker Image
run: docker build -f backend/Dockerfile -t ghcr.io/m4rc02u1f4a4/ytrss-backend:latest -t ghcr.io/m4rc02u1f4a4/ytrss-backend:${{ github.event.release.tag_name }} backend

- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u m4rc02u1f4a4 --password-stdin

- name: Push Docker Image to GitHub Container Registry
run: |
docker push ghcr.io/m4rc02u1f4a4/ytrss-backend:latest
docker push ghcr.io/m4rc02u1f4a4/ytrss-backend:${{ github.event.release.tag_name }}
frontend-build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Build Frontend Docker Image
run: docker build -f frontend/Dockerfile -t ghcr.io/m4rc02u1f4a4/ytrss-frontend:latest -t ghcr.io/m4rc02u1f4a4/ytrss-frontend:${{ github.event.release.tag_name }} frontend

- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u m4rc02u1f4a4 --password-stdin

- name: Push Frontend Docker Image to GitHub Container Registry
run: |
docker push ghcr.io/m4rc02u1f4a4/ytrss-frontend:latest
docker push ghcr.io/m4rc02u1f4a4/ytrss-frontend:${{ github.event.release.tag_name }}
33 changes: 0 additions & 33 deletions .github/workflows/build.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@
This service is an alternative to YouTube's subscription page. You can decide which videos you want to keep and which videos you want to remove, giving you a list of content you want to watch.

![](img/home.png)

## Requirements

To get started, you will need to create a Google Cloud account, create a project, enable the `YouTube Data API v3` and generate a key.

## Installation

> In both steps, it is necessary to change the environment variables contained in the respective docker-compose files
There are two docker-compose files suggested by this project:
- `docker-compose.yml` -> Uses the latest stable release taken directly from Docker Hub

For this method, all you need to do is download the `docker-compose.yml` file and run it with `docker-compose up -d`, then you can access the service from http://127.0.0.1.

- `docker-compose_build.yml` -> Build the project directly from the latest commit in the repo
1. Download the `docker-compose.yml` file in the folder you want to use

For this method, you need to clone the repo and start the containers with the command `docker-compose -f docker-compose_build.yml up --build -d`, then you can access the service from http://127.0.0.1.
```shell
wget https://raw.githubusercontent.com/M4RC02U1F4A4/YouTube-RSS/main/docker-compose.yml
```

2. Edit the environment variable in the `docker-compose.yml` file
3. Deploy the application

```
docker compose up -d
```
4. You can now access the service on `http://127.0.0.1:8080`
180 changes: 0 additions & 180 deletions app/main.py

This file was deleted.

Loading

0 comments on commit f955a1d

Please sign in to comment.