parent
							
								
									4666790784
								
							
						
					
					
						commit
						bd51b6ce14
					
				|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue