mirror of https://github.com/halo-dev/halo
Merge pull request #7765 from halo-dev/bug/invalid-f2c-ns-name
Update Docker image name and tags for Fit2Cloud registrypull/7767/head
commit
3626364163
|
@ -81,7 +81,8 @@ jobs:
|
|||
run: gh release upload ${{ github.event.release.tag_name }} application/build/libs/*
|
||||
|
||||
build-and-publish-container-image-with-buildpacks:
|
||||
if: always() && (github.event_name == 'push' || github.event_name == 'release')
|
||||
needs: build
|
||||
if: always() && needs.build.result == 'success' && (github.event_name == 'push' || github.event_name == 'release')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
@ -242,11 +242,11 @@ tasks.register('publishToDockerHub', BootBuildImage) {
|
|||
}
|
||||
|
||||
tasks.register('publishToFit2Cloud', BootBuildImage) {
|
||||
imageName = "registry.fit2cloud.com/${name}:${tagName}"
|
||||
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/${name}:main".toString()]
|
||||
tags = ["registry.fit2cloud.com/halo/${name}:main".toString()]
|
||||
}
|
||||
docker {
|
||||
publishRegistry {
|
||||
|
|
Loading…
Reference in New Issue