mirror of
https://github.com/KevinMidboe/k9e.no.git
synced 2025-10-29 09:40:13 +00:00
Seperated install, lint and build steps
This commit is contained in:
14
.drone.yml
14
.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
|
||||
|
||||
Reference in New Issue
Block a user