Remove date from docker tag
Build and push mlflow container / Build and push mlflow container (push) Successful in 14s
Details
Build and push mlflow container / Build and push mlflow container (push) Successful in 14s
Details
This commit is contained in:
parent
4df017b7f4
commit
6601848406
|
@ -46,7 +46,6 @@ jobs:
|
||||||
if: steps.create.outputs.tag_exists == 'false'
|
if: steps.create.outputs.tag_exists == 'false'
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(cat requirements.txt | grep mlflow | cut -d'=' -f3)
|
VERSION=$(cat requirements.txt | grep mlflow | cut -d'=' -f3)
|
||||||
TODAY=$(date +'%Y-%m-%d')
|
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
|
||||||
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}
|
||||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}-${TODAY}
|
|
||||||
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest
|
Loading…
Reference in New Issue