Compare commits

2 Commits

Author SHA1 Message Date
4ab1fed81c first commit
Some checks failed
Deploy Application / deploy (push) Failing after 1m29s
2025-06-11 21:56:49 +04:00
c8a3961935 first commit 2025-06-11 21:56:36 +04:00
7 changed files with 5592 additions and 2276 deletions

View File

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

View File

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

View File

@ -1,6 +0,0 @@
include frontend.env
frontend-lint:
yarn lint && yarn format

View File

@ -22,6 +22,14 @@ curl -k -H "Authorization: token $GITEA_TOKEN" \
-o 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/

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>
Check out
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
>create-vue</a
>, the official Vue + Vite starter
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the
official Vue + Vite starter
</p>
<p>
Learn more about IDE Support for Vue in the
<a
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
target="_blank"
<a href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support" target="_blank"
>Vue Docs Scaling up Guide</a
>.
</p>

2263
yarn.lock

File diff suppressed because it is too large Load Diff