Update .gitea/workflows/release.yaml
Build website container / Build image (push) Successful in 5m18s Details

This commit is contained in:
Mathis 2024-01-05 10:55:25 +00:00
parent 7cb9345493
commit 3e2cd9ce6c
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ jobs:
- name: Build and push
run: |
VERSION=$(cat requirements.txt | grep mlflow | cut -d'=' -f3)
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION}
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 push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest