From 6f6354b7142ea3219f0448fef88587c3a0593f68 Mon Sep 17 00:00:00 2001
From: parsa aghaei
Date: Sat, 27 Jun 2026 09:41:17 +0330
Subject: [PATCH] fix deploy: use default package manager repos instead of
broken mirror
---
.gitea/workflows/deploy.yml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index 3b5f392..0a83adb 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -12,10 +12,11 @@ jobs:
steps:
- name: Install SSH client
run: |
- V=$(cut -d'.' -f1-2 /etc/alpine-release)
- echo "https://linux-mirror.liara.ir/repository/alpine/v$V/main" > /etc/apk/repositories
- echo "https://linux-mirror.liara.ir/repository/alpine/v$V/community" >> /etc/apk/repositories
- apk add --no-cache openssh-client
+ if command -v apk >/dev/null 2>&1; then
+ apk add --no-cache openssh-client
+ elif command -v apt-get >/dev/null 2>&1; then
+ apt-get update -qq && apt-get install -y -qq openssh-client
+ fi
- name: Setup SSH key
env:
SSH_KEY: ${{ secrets.DEPLOY_KEY }}