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