Create action
Build website container / Build image (push) Successful in 4m12s Details

This commit is contained in:
LordMathis 2023-11-29 22:24:47 +01:00
parent 5433233dcd
commit c45d790089
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,31 @@
name: Build website container
on:
push:
branches:
- main
jobs:
build:
name: Build image
runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-latest
env:
IMAGE_NAME: mlflow
REGISTRY: git.namesny.com
REPO_OWNER: cluster
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.namesny.com
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- 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}
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest

View File

@ -1,3 +1,3 @@
# mlflow
# Mlflow
Mlflow Docker container with support for postgres and s3 storage