This repository contains a set of reusable, production-ready CircleCI orbs built by @iamanonymous419 to simplify Docker workflows, security scanning with Trivy, and static code analysis using SonarCloud.
orbs/
├── docker/ # Docker-related build, tag, push, login commands
├── sonar/ # SonarCloud integration for static code analysis
├── trivy/ # Trivy CLI installer and scanner jobs
├── LICENSE # MIT License
└── README.md # You're here
Each folder contains:
src/— Orb definitions (commands,jobs,executors,examples)@orb.yml— Metadata used for publishing to CircleCI Orb Registry
Reusable Docker automation orb to:
- Log in to DockerHub securely
- Build Docker images from custom paths
- Tag Docker images
- Push images to remote registry
Usage Example
orbs:
docker: iamanonymous419/docker@1.0.0
jobs:
build-image:
docker:
- image: cimg/base:stable
steps:
- checkout
- docker/login:
username: DOCKERHUB_USERNAME
password: DOCKERHUB_PASSWORD
- docker/build:
image-name: myuser/app
tag: build-123
dockerfile-path: ./Dockerfile
build-context: .
- docker/tag:
image-name: myuser/app
old-tag: build-123
new-tag: latest
- docker/push:
image-name: myuser/app
tag: latestSecurity scanner orb using Trivy. Performs vulnerability scans on container images.
Usage Example
orbs:
trivy: iamanonymous419/trivy@1.0.0
jobs:
scan-image:
machine: true
steps:
- checkout
- trivy/install
- trivy/scan:
image: myuser/app:latest
output: trivy-report.txt
format: table
severity: HIGH,CRITICALOrb for static analysis with SonarCloud. Easily integrate quality gates into your pipeline.
Usage Example
orbs:
sonar: iamanonymous419/sonar@1.0.0
workflows:
version: 2
sonar-scan:
jobs:
- sonar/scan:
project_key: iamanonymous419_mern-chat-app
organization: iamanonymous419
sources: .
exclusions: "**/node_modules/**,**/dist/**,**/build/**"
host_url: https://sonarcloud.io
sonar_token: SONAR_TOKEN-
Pack orb source into
orb.yml:circleci orb pack src > orb.yml -
Validate the orb:
circleci orb validate orb.yml
-
Publish a development version:
circleci orb publish orb.yml iamanonymous419/<orb-name>@dev:first
-
Promote to a production version:
circleci orb publish promote iamanonymous419/<orb-name>@dev:first patch
This project is open-sourced under the MIT License. See LICENSE for details.
Made with 💻 by @iamanonymous419
Feel free to contribute or open issues for improvements.