first commit
This commit is contained in:
@ -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 \
|
||||
|
@ -1 +1,2 @@
|
||||
frontend-lint
|
||||
npm run lint
|
||||
npm run format
|
||||
|
2
Makefile
2
Makefile
@ -2,5 +2,5 @@ include frontend.env
|
||||
|
||||
|
||||
frontend-lint:
|
||||
yarn lint && yarn format
|
||||
npm run lint && npm run format
|
||||
|
||||
|
@ -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
5568
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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>
|
||||
|
Reference in New Issue
Block a user