Clyde/.drone.yml
Debucquoy 1f342468c5
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
droned
2024-02-16 08:07:46 +01:00

78 lines
1.2 KiB
YAML

---
kind: pipeline
type: docker
name: test
steps:
- name: Backend-Tests
image: eclipse-temurin:21
workspace: backend/
commands:
- echo "Backend CI Test TODO"
- name: FrontEnd-Tests
image: node:lts-alpine
workspace: frontend/
commands:
- echo "Frontend CI Test TODO"
---
kind: pipeline
type: docker
name: build
depends_on:
- test
steps:
- name: Backend-build
image: eclipse-temurin:21
workspace: backend/
commands:
- echo "Backend CI build TODO"
- name: FrontEnd-build
image: node:lts-alpine
workspace: frontend/
commands:
- echo "Frontend CI build TODO"
---
kind: pipeline
type: exec
name: deploy
depends_on:
- build
server:
host:
from_secret: host
user:
from_secret: user
ssh_key:
from_secret: ssh_key
plateform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
- push
steps:
- name: deploy frontend
commands:
- cd frontend
- npm run build
- install -d "dist/" "$HOME/dist"
- name: deploy backend
commands:
- echo "deploying backend TODO"
---
kind: signature
hmac: 3c5387c57626f0946636d82b97fad0daaf09dbb5f02f201791363ff33cc0bb82
...