build(docker): add missing $ to get CP_VERSION's environment variable

This commit is contained in:
Yassine Doghri 2022-09-06 16:19:06 +00:00
parent 3bb7572abb
commit 8c4f0675c1
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ docker-build-main-release:
entrypoint: [""]
script:
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
- export CP_VERSION=(cat CP_VERSION.env)
- export CP_VERSION=$(cat CP_VERSION.env)
- /kaniko/executor --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${CP_VERSION} --destination ${DOCKER_IMAGE_WEB_SERVER}:latest
- /kaniko/executor --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION} --destination ${DOCKER_IMAGE_APP}:latest
needs:
@ -43,7 +43,7 @@ docker-build-alpha-beta-release:
entrypoint: [""]
script:
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
- export CP_VERSION=(cat CP_VERSION.env)
- export CP_VERSION=$(cat CP_VERSION.env)
- /kaniko/executor --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${CP_VERSION}
- /kaniko/executor --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${CP_VERSION}
needs: