Drone: Split out docker build
Some checks reported errors
continuous-integration/drone Build was killed
Some checks reported errors
continuous-integration/drone Build was killed
This commit is contained in:
parent
7c2a7b71d5
commit
9c8f3cb904
13
.drone.yml
13
.drone.yml
@ -4,11 +4,18 @@ type: kubernetes
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Build image
|
||||
- name: node.js build
|
||||
image: node:18
|
||||
commands:
|
||||
- "npm add --global pnpm"
|
||||
- pnpm i
|
||||
- pnpm run build
|
||||
- "pnpm run docker:build"
|
||||
- "pnpm run docker:push"
|
||||
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user