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 - name: Build and push
run: | run: |
VERSION=$(cat requirements.txt | grep mlflow | cut -d'=' -f3) 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 . TODAY=$(date +'%Y-%m-%d')
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${VERSION} 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 docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest