feat: configure drone ci #1
55
.drone.yml
Normal file
55
.drone.yml
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: test
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: restore cache
|
||||
image: 'meltwater/drone-cache:v1.4.0'
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: minio_user
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: minio_password
|
||||
settings:
|
||||
archive_format: gzip
|
||||
bucket: clean-architecture-cache
|
||||
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "yarn.lock" }}'
|
||||
endpoint: minio:9000
|
||||
mount:
|
||||
- .node_modules
|
||||
- .yarn
|
||||
path_style: true
|
||||
region: us-east-1
|
||||
restore: true
|
||||
|
||||
- name: test
|
||||
image: 'node:20.6.0-slim'
|
||||
commands:
|
||||
- yarn set version 3.6.3
|
||||
- yarn install
|
||||
- yarn run jest
|
||||
|
||||
- name: rebuild cache
|
||||
image: 'meltwater/drone-cache:v1.4.0'
|
||||
environment:
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: minio_user
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
from_secret: minio_password
|
||||
settings:
|
||||
archive_format: gzip
|
||||
bucket: -clean-architecture-cache
|
||||
cache_key: '{{ .Repo.Name }}-{{ checksum ".tool-versions" }}-{{ checksum "mix.lock" }}'
|
||||
endpoint: minio:9000
|
||||
exit_code: true
|
||||
mount:
|
||||
- node_modules
|
||||
- .yarn
|
||||
path_style: true
|
||||
rebuild: true
|
||||
region: us-east-1
|
Loading…
x
Reference in New Issue
Block a user