25 lines
499 B
YAML
25 lines
499 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: Install dependencies
|
|
image: node:18-alpine
|
|
commands:
|
|
- npm ci
|
|
|
|
- name: Build
|
|
image: node:18-alpine
|
|
commands:
|
|
- npm run build
|
|
|
|
- name: Deploy to Server
|
|
image: curlimages/curl:latest
|
|
environment:
|
|
WEBHOOK_URL:
|
|
from_secret: WEBHOOK_URL
|
|
WEBHOOK_SECRET:
|
|
from_secret: WEBHOOK_SECRET
|
|
commands:
|
|
- 'curl -X POST "$WEBHOOK_URL" -H "Authorization: Bearer $WEBHOOK_SECRET"'
|