@@ -1,23 +1,5 @@
|
|||||||
when:
|
|
||||||
branch: main
|
|
||||||
event: push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
install:
|
test:
|
||||||
image: node:20
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- echo "Hello"
|
||||||
|
|
||||||
build:
|
|
||||||
image: node:20
|
|
||||||
commands:
|
|
||||||
- npm run build
|
|
||||||
depends_on: [install]
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
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/
|
|
||||||
secrets: [deploy_key]
|
|
||||||
depends_on: [build]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user