Skip to content

Commit

Permalink
Merge branch 'Guru322:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
disindu123 authored Sep 9, 2024
2 parents 3b9c4d2 + c6d1912 commit deee2f8
Show file tree
Hide file tree
Showing 35 changed files with 695 additions and 1,355 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: quay-image
on:
push:
branches:
- master
tags:
- '*'
paths:
- version.json
jobs:
build:
env:
context: quay-image
image_name: quay-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Get image tags
id: image_tags
run: |
echo -n ::set-output name=IMAGE_TAGS::
VERSION=$(jq -r '.version' ${context}/version.json)
TAGS=('latest')
if [ "${VERSION}" ] && [ "${VERSION}" != "latest" ]; then
TAGS+=("${VERSION}")
fi
if [[ "${GITHUB_REF}" =~ refs/tags/(.*) ]]; then
TAGS+=("git-${BASH_REMATCH[1]}")
fi
( IFS=$','; echo "${TAGS[*]}" )
- name: Build and publish image to Quay
uses: docker/build-push-action@v1
with:
path: ${{ env.context }}
registry: ${{ secrets.REGISTRY_SERVER }}
repository: ${{ secrets.REGISTRY_NAMESPACE }}/${{ env.image_name }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
tags: "${{ steps.image_tags.outputs.IMAGE_TAGS }}"
28 changes: 23 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,30 @@ on:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Checkout source code
uses: actions/checkout@v4

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

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.REG_TOKEN }}

- name: Build and tag the Docker image
run: |
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
docker build . --file Dockerfile --tag ghcr.io/$REPO_OWNER/deploy-guru:latest
- name: Push the Docker image
run: |
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
docker push ghcr.io/$REPO_OWNER/deploy-guru:latest
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ database.json
session
tmp
session.json
.idx/integrations.json
.idx/dev.nix
session/file
210 changes: 210 additions & 0 deletions Assets/cookies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
[
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281554,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-3PSID",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": null,
"value": "g.a000lAhWu-GUZaq7exVTwtzSLhvxVGRH9kBnDaNnR_vxamLEHywSDpuh_4u0IMMXkfmlR41gVwACgYKAUwSARcSFQHGX2MiJ13O7GGbXa4GD9NYz-nV4BoVAUF8yKrsfy2zd-tE_7-TitOcWKRu0076"
},
{
"domain": ".youtube.com",
"expirationDate": 1752830393.003465,
"hostOnly": false,
"httpOnly": false,
"name": "SIDCC",
"path": "/",
"sameSite": null,
"secure": false,
"session": false,
"storeId": null,
"value": "AKEyXzW_OI3BQXUvLE3Zw41FkLQJXAU0D44hqfmSLQ7F-mEvZRaR3vf3uM6ApuqHGZQqJkrZuA"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281383,
"hostOnly": false,
"httpOnly": false,
"name": "SID",
"path": "/",
"sameSite": null,
"secure": false,
"session": false,
"storeId": null,
"value": "g.a000lAhWu-GUZaq7exVTwtzSLhvxVGRH9kBnDaNnR_vxamLEHywSkzv40p_7UlIEBwg9t7EASgACgYKAeYSARcSFQHGX2Mirr4E3RptLgDb6Z4r-imF4BoVAUF8yKrHCsixB0xV91ocdHJ_M57k0076"
},
{
"domain": ".youtube.com",
"expirationDate": 1752830302.591556,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-1PSIDTS",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "sidts-CjIB4E2dkessW4GfZxT0TyYMdSMDlBtnlghKt_VcC1_h75x7UVZVbH9beKjwzzApgNelrxAA"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281629,
"hostOnly": false,
"httpOnly": false,
"name": "SAPISID",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "D55ljsvXVKPt5Iwv/A0ZBb7RO3ZJo0AqOX"
},
{
"domain": ".youtube.com",
"expirationDate": 1752830393.003737,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-1PSIDCC",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "AKEyXzVbS0_DT2n2eFOqSWxit1kf7nL6cXzo7g9jcafDQpknmhzU3Aj0ytKXbN9NW1mOAaNh"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281593,
"hostOnly": false,
"httpOnly": true,
"name": "SSID",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "ASVG7IGSVZwKvwZ-s"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281649,
"hostOnly": false,
"httpOnly": false,
"name": "__Secure-1PAPISID",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "D55ljsvXVKPt5Iwv/A0ZBb7RO3ZJo0AqOX"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281532,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-1PSID",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "g.a000lAhWu-GUZaq7exVTwtzSLhvxVGRH9kBnDaNnR_vxamLEHywSTPqtNkWQD3MS1DHpjnddDgACgYKAWMSARcSFQHGX2Mi6molbIcFs__ct_-qaJMK8hoVAUF8yKrQqU4ZvsRfLilZfhlzlJ4m0076"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281668,
"hostOnly": false,
"httpOnly": false,
"name": "__Secure-3PAPISID",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": null,
"value": "D55ljsvXVKPt5Iwv/A0ZBb7RO3ZJo0AqOX"
},
{
"domain": ".youtube.com",
"expirationDate": 1752830393.003927,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-3PSIDCC",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": null,
"value": "AKEyXzWrfUPi45Mv2FDX99liJd8ZspPhTDKJiXJoFhuV-k45YdrsDpZXJRxZqjOIHzoMLfrZ"
},
{
"domain": ".youtube.com",
"expirationDate": 1752830302.59167,
"hostOnly": false,
"httpOnly": true,
"name": "__Secure-3PSIDTS",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": null,
"value": "sidts-CjIB4E2dkessW4GfZxT0TyYMdSMDlBtnlghKt_VcC1_h75x7UVZVbH9beKjwzzApgNelrxAA"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281611,
"hostOnly": false,
"httpOnly": false,
"name": "APISID",
"path": "/",
"sameSite": null,
"secure": false,
"session": false,
"storeId": null,
"value": "2v56EMUfsI9rbu6i/AxzQ5Qg8OLMP9Xods"
},
{
"domain": ".youtube.com",
"expirationDate": 1753936834.281575,
"hostOnly": false,
"httpOnly": true,
"name": "HSID",
"path": "/",
"sameSite": null,
"secure": false,
"session": false,
"storeId": null,
"value": "Ar2IamUQkoYKxTJvp"
},
{
"domain": ".youtube.com",
"expirationDate": 1753938447.765229,
"hostOnly": false,
"httpOnly": true,
"name": "LOGIN_INFO",
"path": "/",
"sameSite": "no_restriction",
"secure": true,
"session": false,
"storeId": null,
"value": "AFmmF2swRAIgcSBc-4tnorOufu0fek4nl2a4PiCONRkF7rtsJ4UD1y4CIDkWVU1j1Y15ZfD7ARnQOPUfM6A7KnfFO36ca_zrPOD1:QUQ3MjNmeEs3NXpRbDdhMjEya0pfeE1SVEE0R2pvMVlKaEY1OVNRem9LQWExck4teVNmc2N2a25oNnNtaGdWZUNNOHVCZEQzODV5WEx4c2xEOEhEZ1ZWalNRajBqUlY1Tm5Qb2F4b2JXaVhZWGwxYlpsTVRaMDRjQnE2MzFTRW5kbDRWTEJQVGRsY1dQd2tCX1NGMEdWMGJIT2F1d1RXdUFR"
},
{
"domain": ".youtube.com",
"expirationDate": 1755854395.612955,
"hostOnly": false,
"httpOnly": false,
"name": "PREF",
"path": "/",
"sameSite": null,
"secure": true,
"session": false,
"storeId": null,
"value": "tz=Asia.Calcutta"
}
]
16 changes: 4 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
FROM node:lts-buster
FROM quay.io/gurusensei/gurubhay:latest

RUN apt-get update && \
apt-get install -y \
ffmpeg \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/Guru322/GURU-Ai /root/guru

COPY package.json .
WORKDIR /root/guru/

RUN npm install && npm install qrcode-terminal

COPY . .
RUN npm install --platform=linuxmusl

EXPOSE 5000

Expand Down
Loading

0 comments on commit deee2f8

Please sign in to comment.