Skip to content

Commit 12d9085

Browse files
committed
ci: add latest tag for service image
1 parent 3f436ac commit 12d9085

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/databend-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,13 @@ jobs:
306306
id: get_image_tags
307307
shell: bash
308308
run: |
309-
dockerhub_base=${{ steps.login.outputs.dockerhub_repo }}:${{ needs.create_release.outputs.version }}
310-
ecr_base=${{ steps.login.outputs.ecr_repo }}:${{ needs.create_release.outputs.version }}
311-
_tags="${dockerhub_base}-${{ matrix.distro }},${ecr_base}-${{ matrix.distro }}"
309+
_tags="${{ steps.login.outputs.dockerhub_repo }}:${{ needs.create_release.outputs.version }}-${{ matrix.distro }}"
310+
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:${{ needs.create_release.outputs.version }}-${{ matrix.distro }}"
312311
if [[ "${{ matrix.distro }}" == "debian" ]]; then
313-
_tags="${_tags},${dockerhub_base},${ecr_base}"
312+
_tags="${_tags},${{ steps.login.outputs.dockerhub_repo }}:${{ needs.create_release.outputs.version }}"
313+
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:${{ needs.create_release.outputs.version }}"
314+
_tags="${_tags},${{ steps.login.outputs.dockerhub_repo }}:latest"
315+
_tags="${_tags},${{ steps.login.outputs.ecr_repo }}:latest"
314316
fi
315317
echo ::set-output name=IMAGE_TAGS::${_tags}
316318

0 commit comments

Comments
 (0)