Compare commits

...
2 Commits
2 changed files with 9 additions and 8 deletions
+7 -7
View File
@@ -9,32 +9,32 @@ on:
jobs: jobs:
build-and-publish: build-and-publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: gitea.gt-proj.com registry: 10.0.0.2:3000
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.CI_RUNNER_TOKEN }} password: ${{ secrets.CI_RUNNER_TOKEN }}
- name: Extract metadata - name: Extract metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: gitea.gt-proj.com/${{ gitea.repository_owner }}/${{ gitea.event.repository.name }} images: 10.0.0.2:3000/${{ gitea.repository_owner }}/${{ gitea.event.repository.name }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr
type=schedule,pattern={{date 'YYYYMMDD'}} type=schedule,pattern={{date 'YYYYMMDD'}}
type=raw,value=latest,enable={{is_default_branch}} type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
+2 -1
View File
@@ -1,5 +1,6 @@
FROM ghcr.io/mlflow/mlflow:latest FROM ghcr.io/mlflow/mlflow:latest
RUN pip install psycopg2-binary # Use --no-cache-dir to avoid storing pip cache in the image
RUN pip install --no-cache-dir psycopg2-binary
ENTRYPOINT [ "mlflow", "server" ] ENTRYPOINT [ "mlflow", "server" ]