From 621414d13c0ad287dd3e8917c1243ad31df22739 Mon Sep 17 00:00:00 2001 From: "@kirill.komarov" Date: Wed, 17 Jun 2026 12:31:53 +0500 Subject: [PATCH] del gitea --- .woodpecker.yml | 19 ++++++++++++------- client/.woodpecker.yml | 34 ---------------------------------- 2 files changed, 12 insertions(+), 41 deletions(-) delete mode 100644 client/.woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml index 37f1f0a..112f22b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,29 +1,34 @@ when: branch: main - event: [push, manual] + event: push steps: install: image: node:20 commands: - - cd client && npm install + - npm ci lint: image: node:20 commands: - - cd client && npm run lint + - npm run lint depends_on: [install] build: image: node:20 commands: - - cd client && npm run build + - npm run build depends_on: [install] - deploy: + deploy: image: alpine:latest + environment: + DEPLOY_KEY: + from_secret: deploy_key commands: - apk add --no-cache openssh rsync - - rsync -e "ssh -i /ssh/deploy_key" -avz --delete client/dist/ root@192.168.1.88:/var/www/ - secrets: [deploy_key] + - mkdir -p /ssh + - echo "$DEPLOY_KEY" > /ssh/deploy_key + - chmod 600 /ssh/deploy_key + - rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.88:/var/www/ depends_on: [lint, build] diff --git a/client/.woodpecker.yml b/client/.woodpecker.yml deleted file mode 100644 index 112f22b..0000000 --- a/client/.woodpecker.yml +++ /dev/null @@ -1,34 +0,0 @@ -when: - branch: main - event: push - -steps: - install: - image: node:20 - commands: - - npm ci - - lint: - image: node:20 - commands: - - npm run lint - depends_on: [install] - - build: - image: node:20 - commands: - - npm run build - depends_on: [install] - - deploy: - image: alpine:latest - environment: - DEPLOY_KEY: - from_secret: deploy_key - commands: - - apk add --no-cache openssh rsync - - mkdir -p /ssh - - echo "$DEPLOY_KEY" > /ssh/deploy_key - - chmod 600 /ssh/deploy_key - - rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.88:/var/www/ - depends_on: [lint, build]