mirror of
https://github.com/KevinMidboe/k9e.no.git
synced 2025-10-29 17:50:14 +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
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
image: node:21-alpine3.17
|
||||||
|
commands:
|
||||||
|
- yarn
|
||||||
|
|
||||||
- name: Lint project
|
- name: Lint project
|
||||||
image: node:21-alpine3.17
|
image: node:21-alpine3.17
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
- name: Build app
|
- name: Build
|
||||||
image: node:21-alpine3.17
|
image: node:21-alpine3.17
|
||||||
commands:
|
commands:
|
||||||
- yarn
|
|
||||||
- yarn build
|
- yarn build
|
||||||
|
|
||||||
- name: Publish docker image
|
- name: Publish to ghcr
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
@@ -50,7 +53,7 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy app to kubernetes
|
- name: Deploy to kubernetes
|
||||||
image: alpine/k8s:1.25.15
|
image: alpine/k8s:1.25.15
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /root/.kube
|
- mkdir -p /root/.kube
|
||||||
@@ -67,7 +70,6 @@ steps:
|
|||||||
- pull_request
|
- pull_request
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
- kube
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build
|
- Build
|
||||||
|
|||||||
Reference in New Issue
Block a user