Skip to content

chore: update smurf shared workflows for Docker, Helm, and Terraform, and update the documentation.#405

Merged
clouddrove-ci merged 3 commits into
clouddrove:masterfrom
anket-satbhai:feat/smurf-shared-workflows
Jul 15, 2026
Merged

chore: update smurf shared workflows for Docker, Helm, and Terraform, and update the documentation.#405
clouddrove-ci merged 3 commits into
clouddrove:masterfrom
anket-satbhai:feat/smurf-shared-workflows

Conversation

@anket-satbhai

@anket-satbhai anket-satbhai commented Jul 10, 2026

Copy link
Copy Markdown

Description

Adds full documentation and caller workflow examples for the Smurf reusable workflows (docker-smurf, helm-smurf, tf-smurf), and updates the shared workflows to match the tested shared + caller pattern.

Documentation

  • docs/docker-smurf.md — Architecture, inputs/secrets reference, docker_registry_url naming, and caller examples for AWS ECR, Docker Hub, GCP, and Azure ACR
  • docs/helm-smurf.md — Lint/deploy/rollback flow, multi-cloud callers (EKS, GKE, AKS), and deploy vs rollback dispatch pattern
  • docs/tf-smurf.md — Plan/apply/destroy flow, run_create / run_destroy matrix, and callers for AWS, Azure, GCP, and DigitalOcean

Type of Change

Workflow changes

Docker (docker-smurf.yml)

  • Bump Smurf to v1.1.5
  • Add BUILD_ROLE, DOCKER_USERNAME, and DOCKER_PASSWORD secrets
  • Install Trivy before scan; set Docker Hub env vars for Hub push
  • Fix artifact name (docker-image) and build command formatting
  • Clarify dockerfile_path as repo-root-relative path

Helm (helm-smurf.yml)

  • Split into helm-lint, helm-deploy, and helm-rollback jobs
  • Use boolean toggles for helm_enable and helm_rollback_enable
  • Add multi-cloud kubeconfig setup (AWS EKS, GCP GKE, Azure AKS)
  • Support Helm plugins, remote chart repos, and helm_extra_args secret

Terraform (tf-smurf.yml)

  • Replace destroy input with run_create and run_destroy
  • Add Azure ARM_* credential export and orphaned resource group import before destroy
  • Add plan_only, plan_out, and auto_approve inputs
  • Pin default Smurf version to v1.1.5
  • 🐛 Bug fix
  • ✨ New workflow
  • 📝 Documentation update
  • 🔧 Workflow enhancement
  • 🎨 Code style/formatting
  • ♻️ Refactoring
  • ⚡ Performance improvement
  • 🔒 Security improvement

Workflow Category

  • Terraform (tf-*)
  • CloudFormation (cf-*)
  • Docker (docker-*)
  • Helm (helm-*)
  • PR Automation (pr-*)
  • Security (security-*)
  • Release (release-*)
  • Notification (notify-*)
  • AWS-specific (aws-*)
  • GCP-specific (gcp-*)
  • YAML Lint (yl-*)
  • Other

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Testing

https://github.com/clouddrove-sandbox/smurf-workflows

AWS_SESSION_TOKEN:
required: false
description: AWS Session Token for direct authentication
BUILD_ROLE:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make it AWS_BUILD_ROLE

smurf sdkr build ${{ inputs.docker_image_name }}:${{ inputs.docker_image_tag }} -f ${{
inputs.dockerfile_path }} --platform ${{ inputs.docker_build_platform }}
smurf sdkr build ${{ inputs.docker_image_name }}:${{ inputs.docker_image_tag }} \
-f ${{ inputs.dockerfile_path }} \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please corss check indentation here


- uses: webfactory/ssh-agent@v0.10.0
if: ${{ inputs.git_ssh_key_setup == true }}
if: ${{ inputs.git_ssh_key_setup }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure here , you are removing conditions , its not effecting any resource default creation

@anket-satbhai anket-satbhai changed the title feat: update smurf shared workflows for Docker, Helm, and Terraform, and update the documentation. chore: update smurf shared workflows for Docker, Helm, and Terraform, and update the documentation. Jul 10, 2026
@clouddrove-ci
clouddrove-ci merged commit e7f5acb into clouddrove:master Jul 15, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants