22 lines
440 B
YAML
22 lines
440 B
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
steps:
|
|
- name: node.js build
|
|
image: node:18
|
|
commands:
|
|
- "npm add --global pnpm"
|
|
- pnpm i
|
|
- pnpm run build
|
|
|
|
- name: docker build
|
|
image: docker
|
|
commands:
|
|
- "docker build -t ${DOCKER_REGISTRY}/garrettmills/www ."
|
|
- "docker push ${DOCKER_REGISTRY}/garrettmills/www"
|
|
environment:
|
|
DOCKER_REGISTRY:
|
|
from_secret: DOCKER_REGISTRY
|