first commit

This commit is contained in:
2025-06-11 21:56:36 +04:00
parent 8af8c416f5
commit c8a3961935
7 changed files with 5593 additions and 2271 deletions

View File

@ -21,6 +21,10 @@ jobs:
load: true load: true
tags: ebook:latest tags: ebook:latest
- name: Save Docker image
run: |
docker save ebook:latest | gzip > ebook.tar.gz
- name: Deploy via API - name: Deploy via API
env: env:
GITEA_API: "https://gitea.miduway.space/api/v1/repos/levis/ebook/raw/main" GITEA_API: "https://gitea.miduway.space/api/v1/repos/levis/ebook/raw/main"
@ -39,6 +43,13 @@ jobs:
"$GITEA_API/$file" "$GITEA_API/$file"
done done
# Загружаем Docker образ
echo "Uploading Docker image..."
curl -X PUT \
-H "Authorization: token $GITEA_TOKEN" \
-T "ebook.tar.gz" \
"$GITEA_API/ebook.tar.gz"
# Выполняем деплой на сервер с игнорированием SSL # Выполняем деплой на сервер с игнорированием SSL
echo "Deploying to server..." echo "Deploying to server..."
curl -k -X POST \ curl -k -X POST \

View File

@ -1 +1,2 @@
frontend-lint npm run lint
npm run format

View File

@ -2,5 +2,5 @@ include frontend.env
frontend-lint: frontend-lint:
yarn lint && yarn format npm run lint && npm run format

View File

@ -22,6 +22,14 @@ curl -k -H "Authorization: token $GITEA_TOKEN" \
-o ebook.conf \ -o ebook.conf \
"$GITEA_URL/api/v1/repos/levis/ebook/raw/main/ebook.conf" "$GITEA_URL/api/v1/repos/levis/ebook/raw/main/ebook.conf"
curl -k -H "Authorization: token $GITEA_TOKEN" \
-o ebook.tar.gz \
"$GITEA_URL/api/v1/repos/levis/ebook/raw/main/ebook.tar.gz"
# Загружаем Docker образ
echo "Loading Docker image..."
gunzip -c ebook.tar.gz | docker load
# Копируем файлы в директорию деплоя # Копируем файлы в директорию деплоя
cp -f docker-compose.yml nginx.conf ebook.conf $DEPLOY_DIR/ cp -f docker-compose.yml nginx.conf ebook.conf $DEPLOY_DIR/

5568
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,15 +19,12 @@ const count = ref(0)
<p> <p>
Check out Check out
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank" <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the
>create-vue</a official Vue + Vite starter
>, the official Vue + Vite starter
</p> </p>
<p> <p>
Learn more about IDE Support for Vue in the Learn more about IDE Support for Vue in the
<a <a href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support" target="_blank"
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
target="_blank"
>Vue Docs Scaling up Guide</a >Vue Docs Scaling up Guide</a
>. >.
</p> </p>

2263
yarn.lock

File diff suppressed because it is too large Load Diff