Skip to content

Use pattern matching in refFilterForPush #445

Description

One popular branching strategy, when dealing with maintenance/patch releases, is to late-cut branches. That is, you end up with something like:

- main
- releases/v1
- releases/v1.4
- releases/v2
- etc

There may or may not be a floating major/minor release branch, depending on whether there are any bug fixes for any particular released version.

The problem is that currently refFilterForPush would require listing all such branches explicitly, meaning modifications to CI scripts for each release.

Instead, it would be nice if refFilterForPush supported pattern matching/globbing:

- name: Pre-build dev container image
  uses: devcontainers/ci@v0.3
  timeout-minutes: 10
  with:
    imageName: someRepo/someImage
    imageTag: sometag
    subFolder: src
    push: filter
    refFilterForPush: |
      refs/heads/main
      refs/heads/releases/v*

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions