Skip to content

This is repo contains circleci orb that i use in my ci pipelines.

License

iamanonymous419/orbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 CircleCI Orbs Collection

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.

📁 Project Structure

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

🔧 Available Orbs

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: latest

Security 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,CRITICAL

Orb 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

🚀 Publishing a New Orb

  1. Pack orb source into orb.yml:

    circleci orb pack src > orb.yml
  2. Validate the orb:

    circleci orb validate orb.yml
  3. Publish a development version:

    circleci orb publish orb.yml iamanonymous419/<orb-name>@dev:first
  4. Promote to a production version:

    circleci orb publish promote iamanonymous419/<orb-name>@dev:first patch

📝 License

This project is open-sourced under the MIT License. See LICENSE for details.

🙋‍♂️ Author

Made with 💻 by @iamanonymous419
Feel free to contribute or open issues for improvements.

About

This is repo contains circleci orb that i use in my ci pipelines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published