Fix Nextcloud docker image tag dots to dashes regression
Related ticket(s)
Closes:
Relates:
Summary
Fixes dots to dashes regression introduced in this commit for Nextcloud image tag. For branch, it uses CI_COMMIT_REF_SLUG
for docker image tag which resolves to branch name with dashes and for tag, it uses CI_COMMIT_TAG
for docker image tag which resolves to git
tag name.
Change list:
- a1c19233 use CI/CD templates for docker-build
- 7caeb1a4 switch to CI_COMMIT_TAG for docker image tag
- 89a5f7e8 create and use separate template for tag and branch
- 3d9d0472 add SUBPATH to fix docker push
Steps to reproduce/Links for testing:
For git
branch dev/fix-nextcloud-docker-image-tag-dots-to-dashes-regression
docker image tag is dev-fix-nextcloud-docker-image-tag-dots-to-dashes-regression
:
For git
tag 10.10.10.10
, docker image tag is 10.10.10.10
:
Edited by Fazle Rabbi