diff --git a/ci-templates/README.adoc b/ci-templates/README.adoc index 63c27c7160b04748a3554a0fa5e9b3cb261fe84d..a6b92fbb5ca18b731e1b1766fe11e2634922ade4 100644 --- a/ci-templates/README.adoc +++ b/ci-templates/README.adoc @@ -23,7 +23,7 @@ The Core pipeline, defined in link:ci-templates/core.yml[], has the following st ** Calls `ddeploy` to generate the docker image ** Renames the image created by ddeploy with different tags and pushes them to the registry. *** Tag `${COMMIT_SHA}` (hash of commit) - *** Tag `${CI_COMMIT_REF}` (branch or tag name) + *** Tag `${CI_COMMIT_REF_NAME}` (branch or tag name) *** Tag `latest` only on the default branch - Stage: `.post` * Check `bash`/`sh` script syntax diff --git a/ci-templates/industrial-ci-templates.yml b/ci-templates/industrial-ci-templates.yml index 81de0f20f0858d5aa1f97d0444aa72f4ba2cc034..e8ae2f5793da0f35afb3261cedef7d9c35778e7b 100644 --- a/ci-templates/industrial-ci-templates.yml +++ b/ci-templates/industrial-ci-templates.yml @@ -19,7 +19,7 @@ variables: DOCKER_PUSH_REGISTRY: ${ARTIFACT_DOCKER_URL} DOCKER_PUSH_NAME: ${CI_PROJECT_PATH} - DOCKER_PUSH_TAG: ${CI_COMMIT_REF} + DOCKER_PUSH_TAG: ${CI_COMMIT_REF_NAME} DDEPLOY_YAML: ddeploy.yaml before_script: - apk add --update python3 git py3-pip git-lfs