Added caches and unlock/lock secrets
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jim Martens 2021-10-30 19:03:09 +02:00
parent 158fabdecb
commit 2edd8143cf
1 changed files with 36 additions and 1 deletions

View File

@ -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: