Use yarn image instead of installing it every time

This commit is contained in:
kolaente 2019-10-19 18:36:41 +02:00
parent a0d281b0b4
commit cad4df5558
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -10,11 +10,10 @@ trigger:
steps:
- name: build
image: node:11-alpine
image: kolaente/yarn
pull: true
group: build-static
commands:
- apk add yarn
- yarn
- yarn run lint
- yarn run build
@ -31,11 +30,10 @@ trigger:
steps:
- name: build
image: node:11-alpine
image: kolaente/yarn
pull: true
group: build-static
commands:
- apk add yarn
- yarn
- yarn run lint
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
@ -87,11 +85,10 @@ trigger:
steps:
- name: build
image: node:11-alpine
image: kolaente/yarn
pull: true
group: build-static
commands:
- apk add yarn
- yarn
- yarn run lint
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config