Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce woodpecker noice #29

Open
ValenberghsSven opened this issue Jan 30, 2025 · 0 comments
Open

Reduce woodpecker noice #29

ValenberghsSven opened this issue Jan 30, 2025 · 0 comments

Comments

@ValenberghsSven
Copy link

ValenberghsSven commented Jan 30, 2025

Woodpecker .yml files are not accurate.

A feature branch PR is triggering all checks
Image

pipeline:
  build-and-push:
    image: plugins/docker
    settings:
      repo: "${CI_REPO_OWNER##mu-}/${CI_REPO_NAME%%-service}"
      tags: "feature-${CI_COMMIT_BRANCH##feature/}"
    secrets: [docker_username, docker_password]
    when:
      event: push
      branch: feature/*

should have no indentation for the when part

pipeline:
  build-and-push:
    image: plugins/docker
    settings:
      repo: "${CI_REPO_OWNER##mu-}/${CI_REPO_NAME%%-service}"
      tags: "feature-${CI_COMMIT_BRANCH##feature/}"
    secrets: [docker_username, docker_password]
when:
  event: push
  branch: feature/*

Same for all woodpecker files in this repo.
Feature branches will trigger only feature builds.
Pushes to master will trigger only latest builds
Tags will trigger only tag builds

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

No branches or pull requests

1 participant