This commit is contained in:
@ -10,15 +10,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: 0406afe7de6547e850dd62c84976c6def23a5193
|
token: 0406afe7de6547e850dd62c84976c6def23a5193
|
||||||
|
|
||||||
|
- name: Install curl
|
||||||
|
run: |
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update && apt-get install -y curl
|
||||||
|
elif command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache curl
|
||||||
|
elif command -v yum &> /dev/null; then
|
||||||
|
yum install -y curl
|
||||||
|
fi
|
||||||
|
|
||||||
- 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"
|
||||||
GITEA_TOKEN: "0406afe7de6547e850dd62c84976c6def23a5193"
|
GITEA_TOKEN: "0406afe7de6547e850dd62c84976c6def23a5193"
|
||||||
SERVER_API: "https://ebook.miduway.space/"
|
SERVER_API: "https://ebook.miduway.space/"
|
||||||
run: |
|
run: |
|
||||||
# Устанавливаем зависимости без sudo
|
|
||||||
apt-get update && apt-get install -y curl
|
|
||||||
|
|
||||||
# Загружаем конфигурационные файлы
|
# Загружаем конфигурационные файлы
|
||||||
for file in docker-compose.yml Dockerfile; do
|
for file in docker-compose.yml Dockerfile; do
|
||||||
echo "Uploading $file"
|
echo "Uploading $file"
|
||||||
|
Reference in New Issue
Block a user