cache docker badges for longer (take 3) (#9369)

This commit is contained in:
chris48s
2023-07-12 20:28:05 +01:00
committed by GitHub
parent ffcce04deb
commit 83c22ccd55
5 changed files with 8 additions and 2 deletions

View File

@@ -24,6 +24,8 @@ export default class DockerAutomatedBuild extends BaseJsonService {
},
]
static _cacheLength = 14400
static defaultBadgeData = { label: 'docker build' }
static render({ isAutomated }) {

View File

@@ -17,6 +17,8 @@ export default class DockerCloudAutomatedBuild extends BaseJsonService {
},
]
static _cacheLength = 14400
static defaultBadgeData = { label: 'docker build' }
static render({ buildSettings }) {

View File

@@ -26,7 +26,7 @@ export default class DockerPulls extends BaseJsonService {
},
]
static _cacheLength = 7200
static _cacheLength = 14400
static defaultBadgeData = { label: 'docker pulls' }

View File

@@ -92,6 +92,8 @@ export default class DockerSize extends BaseJsonService {
},
]
static _cacheLength = 600
static defaultBadgeData = { label: 'image size', color: 'blue' }
static render({ size }) {

View File

@@ -26,7 +26,7 @@ export default class DockerStars extends BaseJsonService {
},
]
static _cacheLength = 7200
static _cacheLength = 14400
static defaultBadgeData = { label: 'docker stars' }