mirror of https://github.com/halo-dev/halo
Remove Fit2Cloud registry publishing due to persistent 403 errors (#7767)
parent
3626364163
commit
01304d7fec
|
@ -213,7 +213,7 @@ tasks.register('publishToGhcr', BootBuildImage) {
|
||||||
imageName = "ghcr.io/halo/${name}:${tagName}"
|
imageName = "ghcr.io/halo/${name}:${tagName}"
|
||||||
publish = StringUtils.hasText(System.getenv('GHCR_TOKEN'))
|
publish = StringUtils.hasText(System.getenv('GHCR_TOKEN'))
|
||||||
if (!isRelease) {
|
if (!isRelease) {
|
||||||
tags = ["ghcr.io/halo/${name}:main".toString()]
|
tags = ["ghcr.io/halo/${name}:cnb-main".toString()]
|
||||||
}
|
}
|
||||||
docker {
|
docker {
|
||||||
publishRegistry {
|
publishRegistry {
|
||||||
|
@ -230,7 +230,7 @@ tasks.register('publishToDockerHub', BootBuildImage) {
|
||||||
imageName = "halohub/${name}:${tagName}"
|
imageName = "halohub/${name}:${tagName}"
|
||||||
publish = StringUtils.hasText(System.getenv('DOCKER_TOKEN'))
|
publish = StringUtils.hasText(System.getenv('DOCKER_TOKEN'))
|
||||||
if (!isRelease) {
|
if (!isRelease) {
|
||||||
tags = ["halohub/${name}:main".toString()]
|
tags = ["halohub/${name}:cnb-main".toString()]
|
||||||
}
|
}
|
||||||
docker {
|
docker {
|
||||||
publishRegistry {
|
publishRegistry {
|
||||||
|
@ -241,24 +241,8 @@ tasks.register('publishToDockerHub', BootBuildImage) {
|
||||||
archiveFile = tasks.named('bootJar', BootJar).get().archiveFile
|
archiveFile = tasks.named('bootJar', BootJar).get().archiveFile
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register('publishToFit2Cloud', BootBuildImage) {
|
|
||||||
imageName = "registry.fit2cloud.com/halo/${name}:${tagName}"
|
|
||||||
description = 'Build and publish the Docker image to Fit2Cloud Container Registry.'
|
|
||||||
publish = StringUtils.hasText(System.getenv('F2C_TOKEN'))
|
|
||||||
if (!isRelease) {
|
|
||||||
tags = ["registry.fit2cloud.com/halo/${name}:main".toString()]
|
|
||||||
}
|
|
||||||
docker {
|
|
||||||
publishRegistry {
|
|
||||||
username = System.getenv("F2C_USERNAME")
|
|
||||||
password = System.getenv("F2C_TOKEN")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
archiveFile = tasks.named('bootJar', BootJar).get().archiveFile
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register('publishToAllRegistries') {
|
tasks.register('publishToAllRegistries') {
|
||||||
group = 'publishing'
|
group = 'publishing'
|
||||||
description = 'Build and publish the Docker image to all configured registries.'
|
description = 'Build and publish the Docker image to all configured registries.'
|
||||||
dependsOn tasks.named('publishToGhcr'), tasks.named('publishToDockerHub'), tasks.named('publishToFit2Cloud')
|
dependsOn tasks.named('publishToGhcr'), tasks.named('publishToDockerHub')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue