You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,79 @@
3
3
This is the repository for Sunbird telemetry microservice. It provides APIs for Sunbird telemetry.
4
4
5
5
The code in this repository is licensed under MIT License unless otherwise noted. Please see the [LICENSE](https://github.com/project-sunbird/sunbird-telemetry-service/blob/master/LICENSE) file for details.
The project maintains code quality through automated checks that run on every pull request:
40
+
41
+
1.**Linting**
42
+
- ESLint for code style and quality
43
+
- Command: `npm run lint`
44
+
45
+
2.**Dependencies**
46
+
- Uses `npm ci` for deterministic installations
47
+
- GitHub Actions cache for faster builds
48
+
49
+
3.**Code Formatting**
50
+
- Ensures consistent code formatting
51
+
- Can be automatically fixed using `npm run lint:fix`
52
+
53
+
These checks ensure consistent code style and secure dependency management.
54
+
55
+
## Container Image Publishing
56
+
57
+
This repository uses GitHub Actions to automatically build and publish Docker container images to GitHub Container Registry (GHCR) whenever a new tag is pushed to the repository.
58
+
59
+
### Build and Publish Workflow
60
+
61
+
The workflow is triggered on:
62
+
- creation of any tag
63
+
64
+
Key features of the workflow:
65
+
1. Automatically builds Docker images
66
+
2. Tags images with a combination of:
67
+
- The tag name (lowercased)
68
+
- Short commit hash
69
+
- GitHub run number
70
+
3. Publishes images to `ghcr.io` using the repository name
71
+
4. Uses GitHub Actions for secure authentication to GHCR
0 commit comments