From 9c8f3cb90495e875c26d24014b564e31e2532848 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 28 Nov 2022 23:53:38 -0600 Subject: [PATCH] Drone: Split out docker build --- .drone.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4a65b70..d00fd1b 100644 --- a/.drone.yml +++ b/.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