Added caches and unlock/lock secrets
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
158fabdecb
commit
2edd8143cf
37
.drone.yml
37
.drone.yml
|
@ -8,12 +8,47 @@ clone:
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: setup and build
|
- name: restore-cache
|
||||||
|
privileged: true
|
||||||
|
image: 2martens/drone-volume-cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- ./node_modules
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
- name: unlock secrets
|
||||||
|
image: 2martens/drone-git-crypt
|
||||||
|
environment:
|
||||||
|
MODE: unlock
|
||||||
|
GIT_CRYPT_KEY:
|
||||||
|
from_secret: git_crypt_key
|
||||||
|
- name: setup
|
||||||
image: node:16-alpine
|
image: node:16-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
|
- name: build
|
||||||
|
image: node:16-alpine
|
||||||
|
commands:
|
||||||
- npm install -g @angular/cli
|
- npm install -g @angular/cli
|
||||||
- ng build
|
- ng build
|
||||||
|
- name: lock secrets
|
||||||
|
image: 2martens/drone-git-crypt
|
||||||
|
environment:
|
||||||
|
MODE: lock
|
||||||
|
GIT_CRYPT_KEY:
|
||||||
|
from_secret: git_crypt_key
|
||||||
|
- name: rebuild-cache
|
||||||
|
privileged: true
|
||||||
|
image: 2martens/drone-volume-cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- ./node_modules
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in New Issue