Seperated install, lint and build steps

This commit is contained in:
2023-11-04 23:39:24 +01:00
parent d4cb81397f
commit 8cb98f0848

View File

@@ -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