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