This directory contains GitHub Actions workflows for the No-Code Classification Toolkit.
File: docker-build-push.yml
Automatically builds and pushes Docker images to GitHub Container Registry (ghcr.io) whenever code is pushed to the repository.
The workflow runs on:
- Push to main branch: Builds and pushes images with
latesttag - Push tags matching
v*: Builds and pushes versioned releases (e.g.,v1.0.0) - Pull requests to main: Builds images for testing (does not push)
- Manual trigger: Can be triggered manually via GitHub Actions UI
The workflow creates multiple tags for each build:
latest- Latest build from the main branchmain- Latest build from the main branchv1.2.3- Semantic version tags (for tagged releases)v1.2- Major.minor version tagsv1- Major version tagsmain-<sha>- Branch name with commit SHA
Images are pushed to GitHub Container Registry:
ghcr.io/animikhaich/no-code-classification-toolkit
docker pull ghcr.io/animikhaich/no-code-classification-toolkit:latestdocker pull ghcr.io/animikhaich/no-code-classification-toolkit:v1.0.0docker run -it --runtime nvidia --net host -v /path/to/dataset:/data ghcr.io/animikhaich/no-code-classification-toolkit:latestThe workflow requires:
contents: read- To checkout the repositorypackages: write- To push images to GitHub Container Registry
- Docker Buildx: Uses BuildKit for efficient multi-platform builds
- Layer caching: Leverages GitHub Actions cache for faster builds
- Metadata extraction: Automatically generates Docker labels and tags
- Security: Uses
GITHUB_TOKENfor authentication (no manual secrets needed)
You can monitor workflow runs in the Actions tab of the repository.