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:
|
||||
- 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
|
||||
commands:
|
||||
- npm install
|
||||
- name: build
|
||||
image: node:16-alpine
|
||||
commands:
|
||||
- npm install -g @angular/cli
|
||||
- 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
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
|
|
Loading…
Reference in New Issue