2023-09-09 17:15:53 +02:00
|
|
|
name: test
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
|
2023-09-09 17:25:11 +02:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2023-09-09 17:15:53 +02:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2023-09-09 17:25:11 +02:00
|
|
|
- name: clone
|
2023-09-09 17:28:45 +02:00
|
|
|
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /opt/app-root/src
|
2023-09-09 17:25:11 +02:00
|
|
|
commands:
|
|
|
|
- mkdir ~/docs && cd ~/docs
|
|
|
|
- git clone $DRONE_REPO_LINK .
|
|
|
|
- git checkout $DRONE_COMMIT
|
2023-09-09 17:15:53 +02:00
|
|
|
- name: build
|
|
|
|
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
|
2023-09-09 17:28:45 +02:00
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /opt/app-root/src
|
2023-09-09 17:15:53 +02:00
|
|
|
commands:
|
2023-09-09 17:26:34 +02:00
|
|
|
- cd ~/docs
|
2023-09-09 17:15:53 +02:00
|
|
|
- npm install --only=production
|
|
|
|
- npm run build
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2023-09-09 17:28:45 +02:00
|
|
|
- pull_request
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|