Skip to content

eddumelendez/dockerize-ollama-models

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and Push Docker Image with Ollama Model GitHub Action

This GitHub Action automates the process of building and pushing a Docker image that includes a specified model running in Ollama to DockerHub.

Inputs

  • docker_username: Required. Your DockerHub username.
  • docker_password: Required. Your DockerHub password.
  • docker_repository: Required. The DockerHub repository name where the image will be pushed.
  • docker_tag: Required. The tag to use for the pushed Docker image.
  • model_name: Required. The name of the model to be included in the Docker image.
  • model_tag: The tag of the model. Defaults to latest.
  • ollama_version: The version of Ollama to use. Defaults to 0.2.7.

Usage

To use this action in your workflow, add the following step:

- name: Build and Deploy Docker Image
  uses: ./.github/actions/dockerize-ollama-models-action
  with:
    docker_username: ${{ secrets.DOCKER_USERNAME }}
    docker_password: ${{ secrets.DOCKER_PASSWORD }}
    docker_repository: <your-dockerhub-repository>
    docker_tag: <your-image-tag>
    model_name: <your-model-name>
    model_tag: <your-model-tag> # Optional
    ollama_version: <ollama-version> # Optional

Example

See the example workflow for a complete example.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Dockerfile 100.0%