What about...

This commit is contained in:
2023-05-03 15:11:41 -04:00
parent 943ffe96d1
commit 9073408f6d

View File

@@ -8,6 +8,9 @@ workspace:
steps: steps:
- name: yarn install - name: yarn install
image: node:latest image: node:latest
volumes:
- name: module_cache
path: ./node_modules
commands: commands:
- yarn install - yarn install
@@ -46,6 +49,10 @@ trigger:
event: event:
- push - push
volumes:
- name: module_cache
temp: {}
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@@ -57,6 +64,9 @@ workspace:
steps: steps:
- name: yarn install - name: yarn install
image: node:latest image: node:latest
volumes:
- name: module_cache
path: ./node_modules
commands: commands:
- yarn install - yarn install
@@ -90,6 +100,10 @@ trigger:
event: event:
- push - push
volumes:
- name: module_cache
temp: {}
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@@ -103,7 +117,7 @@ platform:
arch: arm64 arch: arm64
steps: steps:
- name: yarn-install - name: Build
image: node image: node
commands: commands:
- cd /app - cd /app
@@ -125,9 +139,7 @@ steps:
volumes: volumes:
- name: app-build-dir - name: app-build-dir
path: /app-build path: /app-build
volumes: depends_on: Build
- name: app-build-dir
temp: {}
trigger: trigger:
branch: branch:
@@ -137,3 +149,7 @@ trigger:
depends_on: depends_on:
- Build Pipeline - Build Pipeline
volumes:
- name: app-build-dir
temp: {}