31 lines
667 B
YAML
31 lines
667 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:14-alpine
|
|
commands:
|
|
- echo "Building the application..."
|
|
- echo "Pipeline is running on runner ${DRONE_RUNNER_NAME}"
|
|
|
|
- name: test
|
|
image: python:3.9
|
|
depends_on:
|
|
- build
|
|
commands:
|
|
- echo "Running tests..."
|
|
- echo "Pipeline is running on runner ${DRONE_RUNNER_NAME}"
|
|
|
|
- name: deploy
|
|
image: ubuntu:20.04
|
|
depends_on:
|
|
- test
|
|
commands:
|
|
- echo "Deploying the application..."
|
|
- echo "Pipeline is running on runner ${DRONE_RUNNER_NAME}"
|
|
|
|
# node:
|
|
# system: linux
|
|
# task: unreviewed_code
|
|
# environment: node_js |