Compare commits

..

No commits in common. "b2eedfac7b21494a5660d20dc1e4d8d94f532655" and "4ac24a6714341b9a9c646f97165dfe8430f2728e" have entirely different histories.

4 changed files with 5 additions and 40 deletions

View File

@ -1,46 +1,14 @@
name: Build and push mlflow container
name: Build website container
on:
push:
branches:
- main
jobs:
tag:
name: Create mlflow tag
runs-on: ubuntu-latest
outputs:
tag_created: ${{ steps.create.outputs.created }}
container: ghcr.io/catthehacker/ubuntu:act-latest@sha256:8583ed2b7d097609ff91cc914696324ee945ceb8639967759f4cebbfcb8e63a5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --tags origin
- name: Get latest git tag
id: tag
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
- name: Get mlflow version
id: mlflow
run: echo "mlflow=$(cat requirements.txt | grep mlflow | cut -d'=' -f3)" >> $GITHUB_OUTPUT
- name: Create tag if it doesn't exist
id: create
run: |
if git tag -l "${{ steps.tag.outputs.tag }}"; then
echo "Tag already exists"
echo "created=false" >> $GITHUB_OUTPUT
else
git tag ${{ steps.mlflow.outputs.mlflow }}
git push origin ${{ steps.mlflow.outputs.mlflow }}
echo "created=true" >> $GITHUB_OUTPUT
fi
build:
name: Build and push mlflow container
needs: tag
if: ${{ needs.tag.outputs.tag_created == 'true' }}
name: Build image
runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-latest@sha256:07466dbbecd8690579d9bcbf8a1214240b91534cf03eed5f222e7fd80131f582
container: ghcr.io/catthehacker/ubuntu:act-latest@sha256:8583ed2b7d097609ff91cc914696324ee945ceb8639967759f4cebbfcb8e63a5
env:
IMAGE_NAME: mlflow
REGISTRY: git.namesny.com

View File

@ -1,4 +1,4 @@
FROM python:3.10-slim@sha256:b64d1888e5d1ac06ff2c0ad0fd1fe9c2dc5826de2bbe2e5a87ea4b9346edaf1c
FROM python:3.10-slim@sha256:669b88d5947f8bc66039e97949099baa52fe6b02b9d6846836667d2c8d9859fe
COPY requirements.txt .
RUN pip install -r requirements.txt
EXPOSE 5000

View File

@ -11,8 +11,5 @@
},
"pin": {
"automerge": true
},
"digest": {
"automerge": true
}
}

View File

@ -1,3 +1,3 @@
mlflow==2.10.0
psycopg2-binary==2.9.9
boto3==1.34.31
boto3==1.34.29