From 8cb98f0848642986349448670379eafff5c49111 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sat, 4 Nov 2023 23:39:24 +0100 Subject: [PATCH] Seperated install, lint and build steps --- .drone.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 76ffb96..4d0529f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,19 +8,22 @@ platform: arch: amd64 steps: + - name: Install dependencies + image: node:21-alpine3.17 + commands: + - yarn + - name: Lint project image: node:21-alpine3.17 commands: - - yarn - yarn lint - - name: Build app + - name: Build image: node:21-alpine3.17 commands: - - yarn - yarn build - - name: Publish docker image + - name: Publish to ghcr image: plugins/docker settings: registry: ghcr.io @@ -50,7 +53,7 @@ platform: arch: amd64 steps: - - name: Deploy app to kubernetes + - name: Deploy to kubernetes image: alpine/k8s:1.25.15 commands: - mkdir -p /root/.kube @@ -67,7 +70,6 @@ steps: - pull_request branch: - main - - kube depends_on: - Build