From 372186c468880fbb001e2aabfa1b386b4f5eaf71 Mon Sep 17 00:00:00 2001 From: catarrh Date: Mon, 2 Nov 2026 21:11:44 +0300 Subject: [PATCH 1/5] ci: add manual deploy workflow --- .gitea/workflows/deploy.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..cdbbe66 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,41 @@ +name: deploy +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Show toolchain + run: node -v && npm -v + + - name: Install deploy tools + run: | + apt-get update -qq + apt-get install -y -qq --no-install-recommends rsync openssh-client + + - name: Configure SSH + env: + DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} + MX_HOST_KEY: ${{ secrets.MX_HOST_KEY }} + run: | + install -m 700 -d ~/.ssh + printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519 + printf '%s\n' "$MX_HOST_KEY" > ~/.ssh/known_hosts + chmod 600 ~/.ssh/id_ed25519 ~/.ssh/known_hosts + + - name: Build + run: | + npm ci + npm run build + + - name: Deploy + run: | + set -euo pipefail + REL="$(date -u +%Y%m%dT%H%M%SZ)-$(printf %s "$GITHUB_SHA" | cut -c1-7)" + rsync -a --exclude=.git \ + --link-dest=/var/www/ponomar/current \ + dist/ deploy@10.8.0.1:/var/www/ponomar/releases/"$REL"/ + ssh deploy@10.8.0.1 "deploy-site ponomar $REL" From 46f0954136543b89e6380b5e0c015815db41cb98 Mon Sep 17 00:00:00 2001 From: catarrh Date: Mon, 2 Nov 2026 21:23:20 +0300 Subject: [PATCH 2/5] ci: add manual deploy workflow --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index cdbbe66..354bd19 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,7 +14,7 @@ jobs: - name: Install deploy tools run: | apt-get update -qq - apt-get install -y -qq --no-install-recommends rsync openssh-client + apt-get install -y -qq --no-install-recommends rsync openssh-client git - name: Configure SSH env: From e6a3dc86e25f6f3b6ddfcf06e3b5bb4f61f455b7 Mon Sep 17 00:00:00 2001 From: catarrh Date: Mon, 2 Nov 2026 21:25:13 +0300 Subject: [PATCH 3/5] ci: add manual deploy workflow --- .gitea/workflows/deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 354bd19..fd2db01 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,16 +6,16 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - name: Install deploy tools + run: | + apt-get update -qq + apt-get install -y -qq --no-install-recommends git rsync openssh-client + - uses: actions/checkout@v4 - name: Show toolchain run: node -v && npm -v - - name: Install deploy tools - run: | - apt-get update -qq - apt-get install -y -qq --no-install-recommends rsync openssh-client git - - name: Configure SSH env: DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} From 765cf179dcb14a1ab0c8df4eed294c952901ab23 Mon Sep 17 00:00:00 2001 From: catarrh Date: Mon, 2 Nov 2026 21:27:34 +0300 Subject: [PATCH 4/5] ci: add manual deploy workflow --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fd2db01..91b488f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,8 +8,8 @@ jobs: steps: - name: Install deploy tools run: | - apt-get update -qq - apt-get install -y -qq --no-install-recommends git rsync openssh-client + apt-get -o Acquire::ForceIPv4=true update -qq + apt-get -o Acquire::ForceIPv4=true install -y -qq --no-install-recommends git rsync openssh-client - uses: actions/checkout@v4 From f8497d2a053f8a7cc85a762adacc7aed7019f091 Mon Sep 17 00:00:00 2001 From: catarrh Date: Mon, 2 Nov 2026 21:36:01 +0300 Subject: [PATCH 5/5] ci: add manual deploy workflow --- .gitea/workflows/deploy.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 91b488f..1694d07 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -6,11 +6,6 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - name: Install deploy tools - run: | - apt-get -o Acquire::ForceIPv4=true update -qq - apt-get -o Acquire::ForceIPv4=true install -y -qq --no-install-recommends git rsync openssh-client - - uses: actions/checkout@v4 - name: Show toolchain