[#45] More updates to cicd file
continuous-integration/drone the build failed Details

pull/72/head
Jef Roosens 2021-05-10 22:15:05 +02:00
parent 4666790784
commit bd51b6ce14
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 19 additions and 6 deletions

View File

@ -7,7 +7,7 @@ pipeline:
endpoint: ${S3_ENDPOINT}
access_key: ${S3_USER}
secret_key: ${S3_PASSWORD}
root: fej_build-cache
root: fej-build-cache
restore: true
secrets: [ s3_endpoint, s3_user, s3_password ]
@ -53,18 +53,15 @@ pipeline:
- cargo test
# =====REBUILD CACHE=====
# =====REBUILD & FLUSH CACHE=====
rebuild-cache:
image: plugins/s3-cache
endpoint: ${S3_ENDPOINT}
access_key: ${S3_USER}
secret_key: ${S3_PASSWORD}
root: fej_build-cache
root: fej-build-cache
rebuild: true
flush: true
# Delete cache older than 30 days (might lower this)
flush_age: 30
mount:
- target
- web/node_modules
@ -74,6 +71,22 @@ pipeline:
when:
status: [ success, failure ]
flush-cache:
image: plugins/s3-cache
endpoint: ${S3_ENDPOINT}
access_key: ${S3_USER}
secret_key: ${S3_PASSWORD}
root: fej-build-cache
flush: true
# Delete cache older than 30 days (might lower this)
flush_age: 30
secrets: [ s3_endpoint, s3_user, s3_password ]
# Push the cache, even on failure
when:
status: [ success, failure ]
# publish-builder:
# image: plugins/docker