Skip to content

docs: fix tag/branch logic in Circle CI and GitLab environment examples#25135

Open
lacatoire wants to merge 1 commit into
docker:mainfrom
lacatoire:docs/25081-ci-tag-branch-logic
Open

docs: fix tag/branch logic in Circle CI and GitLab environment examples#25135
lacatoire wants to merge 1 commit into
docker:mainfrom
lacatoire:docs/25081-ci-tag-branch-logic

Conversation

@lacatoire
Copy link
Copy Markdown
Contributor

In scout/integrations/environment/cli.md:

  • Circle CI: the conditional was inverted (set tag from the empty variable) and the branch case echoed a GitLab variable ($CI_COMMIT_BRANCH). Each branch now uses the matching Circle CI variable.
  • GitLab: the echoes didn't match the path taken. Each branch now prints what it actually does.

Fixes #25081
Fixes #25082

The Circle CI example had inverted conditionals (it set the tag from
the empty variable and used a GitLab variable in the branch echo), and
the GitLab example printed echoes that didn't match the branch taken.
Align each branch of the conditionals with its echo and use the
provider's own variables.

Fixes docker#25081
Fixes docker#25082
@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 98d997a
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a0f1d10ddedb20008ade965
😎 Deploy Preview https://deploy-preview-25135--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/scout Relates to Docker Scout label May 21, 2026
@thaJeztah
Copy link
Copy Markdown
Member

Hm.. linting failure looks unrelated, but legit? I suspect CI was outdated on #24134

content/guides/grafana-mcp-server-gemini.md:71:5 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "###  Data source Discovery"

@thaJeztah
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/scout Relates to Docker Scout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs-scanner] GitLab example has confusing tag/branch logic [docs-scanner] Circle CI example has inverted tag/branch logic

2 participants