del gitea
This commit is contained in:
@@ -8,6 +8,12 @@ steps:
|
||||
commands:
|
||||
- npm ci
|
||||
|
||||
lint:
|
||||
image: node:20
|
||||
commands:
|
||||
- npm run lint
|
||||
depends_on: [install]
|
||||
|
||||
build:
|
||||
image: node:20
|
||||
commands:
|
||||
@@ -18,6 +24,7 @@ steps:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache openssh rsync
|
||||
- rsync -e "ssh -i /ssh/deploy_key" -avz --delete dist/ root@192.168.1.88:/var/www/
|
||||
- rsync -e "ssh -i /ssh/deploy_key" -avz --delete dist/ root@192.168.1.88:/srv/shop/
|
||||
- ssh -i /ssh/deploy_key root@192.168.1.88 'systemctl restart shop-server'
|
||||
secrets: [deploy_key]
|
||||
depends_on: [build]
|
||||
depends_on: [lint, build]
|
||||
|
||||
Reference in New Issue
Block a user