Update .gitea/workflows/release.yaml
Build website container / Build image (push) Successful in 5m18s
Details
Build website container / Build image (push) Successful in 5m18s
Details
This commit is contained in:
parent
7cb9345493
commit
3e2cd9ce6c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue