Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kind: pipeline
- type: docker
- name: default
- steps:
- - name: restore-cache-with-filesystem
- image: meltwater/drone-cache:dev
- pull: true
- settings:
- backend: "filesystem"
- restore: true
- cache_key: "volume"
- archive_format: "gzip"
- # filesystem_cache_root: "/tmp/cache"
- mount:
- - '/drone/src/.m2'
- debug: true
- volumes:
- - name: cache
- path: /tmp/cache
- - name: Test With Maven
- image: maven:3.6.1
- environment:
- TEST_MINIO_ACCESS_KEY:
- from_secret: TEST_MINIO_ACCESS_KEY
- TEST_MINIO_SECRET_KEY:
- from_secret: TEST_MINIO_SECRET_KEY
- TEST_MINIO_IS_SSL: "true"
- TEST_MINIO_PORT: "443"
- TEST_MINIO_HOSTNAME: "storage.googleapis.com"
- TEST_DATABASE_NAME: faroseacademy_webapi
- TEST_DATABASE_USERNAME: root
- TEST_DATABASE_PASSWORD: "123456"
- TEST_DATABASE_HOSTNAME: mysql
- TEST_DATABASE_PORT: "3306"
- TEST_MONGO_HOSTNAME: mongo
- TEST_MONGO_PORT: "27017"
- commands:
- - export MAVEN_HOME=/drone/src/.m2
- - export M2_HOME=/drone/src/.m2
- - echo $(ls -lah /drone/src/.m2)
- - mvn test -Dmaven.repo.local=/drone/src/.m2
- - echo $(ls -lah /drone/src/.m2)
- - name: rebuild-cache-with-filesystem
- image: meltwater/drone-cache:dev
- pull: true
- settings:
- debug: true
- backend: "filesystem"
- rebuild: true
- cache_key: "volume"
- archive_format: "gzip"
- # filesystem_cache_root: "/tmp/cache"
- mount:
- - '/drone/src/.m2'
- volumes:
- - name: cache
- path: /tmp/cache
- services:
- - name: mysql
- image: mysql:8
- environment:
- MYSQL_ROOT_PASSWORD: "123456"
- MYSQL_DATABASE: "faroseacademy_webapi"
- - name: mongo
- image: mongo:4
- environment:
- MONGO_INITDB_DATABASE: 'faroseacademy_webapi'
- trigger:
- branch:
- - master
- - integration
- event:
- - push
- - pull_request
- volumes:
- - name: cache
- host:
- path: /tmp/cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement