Remove date from docker tag
Build and push mlflow container / Build and push mlflow container (push) Successful in 14s Details

This commit is contained in:
Mathis 2024-02-01 12:33:36 +00:00
parent 4df017b7f4
commit 6601848406
1 changed files with 2 additions and 3 deletions

View File

@ -46,7 +46,6 @@ jobs:
if: steps.create.outputs.tag_exists == 'false'
run: |
VERSION=$(cat requirements.txt | grep mlflow | cut -d'=' -f3)
TODAY=$(date +'%Y-%m-%d')
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}-${TODAY} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}-${TODAY}
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest