• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyberDuck79 / duckfile
77%
main: 80%

Build:
Build:
LAST BUILD BRANCH: fix/sonarqube-code-quality-issues
DEFAULT BRANCH: main
Repo Added 10 Aug 2025 04:23PM UTC
Files 26
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/environment-variables
branch: feature/environment-variables
CHANGE BRANCH
x
Reset
  • feature/environment-variables
  • 10-provide-allowdeny-list
  • 30-default-target-property-as-ref
  • 68-separated-targets-and-remotes-configurations
  • 7-verbose-and-debug-flags
  • 8-optional-sha256-checksum-pinning-for-the-template-file
  • chore/refactor-run-split-tests
  • dependabot/go_modules/github.com/spf13/cobra-1.10.1
  • dependabot/go_modules/github.com/spf13/pflag-1.0.10
  • dependabot/go_modules/github.com/spf13/pflag-1.0.9
  • dependencies-update
  • docs/remove-shallow-option
  • feat/add-emojis-to-info-messages
  • feat/config-flag
  • feat/security-config-files
  • feat/self-copy-rendered
  • feat/submodules-support
  • feat/two-tier-cache-refactor
  • feature/cli-command-testing
  • feature/commit-hash-tracking
  • feature/enhance-init-add-wizard
  • feature/env-file-support
  • feature/exec-command-conflict-resolution
  • fix-release-ci
  • fix/sonarqube-code-quality-issues
  • fix/wizard-validation-improvements
  • golangci-lint
  • improve-command-help-text
  • log-level
  • main
  • sync-exec-refacto
  • update-readme-fix-codecov

31 Aug 2025 01:55PM UTC coverage: 77.116% (+0.5%) from 76.628%
17358081107

Pull #56

github

CyberDuck79
feat: expose repository paths as environment variables

- Add 8 environment variables available during target execution:
  - DUCK_REPO_PATH: Local cache path to repository
  - DUCK_REPO_URL: Repository URL
  - DUCK_REPO_REF: Repository reference (branch/tag)
  - DUCK_TEMPLATE_PATH: Path to template within repo
  - DUCK_RENDERED_PATH: Path to rendered template
  - DUCK_SYMLINK_PATH: Final symlinked path
  - DUCK_TARGET_NAME: Target name from config
  - DUCK_CACHE_DIR: Duck cache directory

This enables advanced template use cases:
- Multi-file templates: Reference other files in the repo
- Script execution: Run build scripts from template repo
- Dynamic includes: Include configuration fragments
- Asset copying: Copy static files alongside templates

Implementation details:
- Extended PrepareTemplateResult struct with new fields
- Added buildDuckEnvironment function for env var creation
- Modified executeTarget to inject environment variables
- Added comprehensive unit and integration tests
- Updated documentation with examples and use cases
Pull Request #56: feat: expose repository paths as environment variables

39 of 39 new or added lines in 2 files covered. (100.0%)

1294 of 1678 relevant lines covered (77.12%)

11.55 hits per line

Relevant lines Covered
Build:
Build:
1678 RELEVANT LINES 1294 COVERED LINES
11.55 HITS PER LINE
Source Files on feature/environment-variables
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17358081107 feature/environment-variables feat: expose repository paths as environment variables - Add 8 environment variables available during target execution: - DUCK_REPO_PATH: Local cache path to repository - DUCK_REPO_URL: Repository URL - DUCK_REPO_REF: Repository reference (... Pull #56 31 Aug 2025 01:56PM UTC CyberDuck79 github
77.12
See All Builds (107)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc