Skip to content

Commit

Permalink
cache docker badges for longer (take 3) (#9369)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s authored Jul 12, 2023
1 parent ffcce04 commit 83c22cc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions services/docker/docker-automated.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export default class DockerAutomatedBuild extends BaseJsonService {
},
]

static _cacheLength = 14400

static defaultBadgeData = { label: 'docker build' }

static render({ isAutomated }) {
Expand Down
2 changes: 2 additions & 0 deletions services/docker/docker-cloud-automated.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export default class DockerCloudAutomatedBuild extends BaseJsonService {
},
]

static _cacheLength = 14400

static defaultBadgeData = { label: 'docker build' }

static render({ buildSettings }) {
Expand Down
2 changes: 1 addition & 1 deletion services/docker/docker-pulls.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class DockerPulls extends BaseJsonService {
},
]

static _cacheLength = 7200
static _cacheLength = 14400

static defaultBadgeData = { label: 'docker pulls' }

Expand Down
2 changes: 2 additions & 0 deletions services/docker/docker-size.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export default class DockerSize extends BaseJsonService {
},
]

static _cacheLength = 600

static defaultBadgeData = { label: 'image size', color: 'blue' }

static render({ size }) {
Expand Down
2 changes: 1 addition & 1 deletion services/docker/docker-stars.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class DockerStars extends BaseJsonService {
},
]

static _cacheLength = 7200
static _cacheLength = 14400

static defaultBadgeData = { label: 'docker stars' }

Expand Down

0 comments on commit 83c22cc

Please sign in to comment.