Remove Fit2Cloud registry publishing due to persistent 403 errors (#7767)

chore/correct-ghcr-ns-nae
John Niang 2025-09-18 17:01:13 +08:00 committed by GitHub
parent 3626364163
commit 01304d7fec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 19 deletions

View File

@ -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')
} }