Use yarn image instead of installing it every time
This commit is contained in:
parent
a0d281b0b4
commit
cad4df5558
1 changed files with 3 additions and 6 deletions
|
@ -10,11 +10,10 @@ trigger:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:11-alpine
|
image: kolaente/yarn
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
commands:
|
commands:
|
||||||
- apk add yarn
|
|
||||||
- yarn
|
- yarn
|
||||||
- yarn run lint
|
- yarn run lint
|
||||||
- yarn run build
|
- yarn run build
|
||||||
|
@ -31,11 +30,10 @@ trigger:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:11-alpine
|
image: kolaente/yarn
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
commands:
|
commands:
|
||||||
- apk add yarn
|
|
||||||
- yarn
|
- yarn
|
||||||
- yarn run lint
|
- yarn run lint
|
||||||
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||||
|
@ -87,11 +85,10 @@ trigger:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:11-alpine
|
image: kolaente/yarn
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
commands:
|
commands:
|
||||||
- apk add yarn
|
|
||||||
- yarn
|
- yarn
|
||||||
- yarn run lint
|
- yarn run lint
|
||||||
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
- "echo '{\"VIKUNJA_API_BASE_URL\": \"/api/v1/\"}' > /drone/src/public/config.json" # Override config
|
||||||
|
|
Loading…
Reference in a new issue