Skip to content

Commit

Permalink
actions: fix tag trigger pattern
Browse files Browse the repository at this point in the history
Pattern doesn't support matching a group of alternatives. To workaround
it, each alternative become a separate pattern.

Additionally, patterns matching dot character doesn't need special
escaping because it's not considered as a special character. It works
fine when dot is escaped, but this behavior it's not documented.
  • Loading branch information
zimnx committed Feb 16, 2021
1 parent 489398a commit bc194d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
# Restrict the branches to only those we want to promote from.
branches:
- 'master'
- 'v[0-9]+\.[0-9]+'
- 'v[0-9]+.[0-9]+'
# Act only on temporary tags, the final ones are created by manually promoting
# an existing candidate image, after it goes through QA. We need to be carefull
# to avoid overwritting those, building from the same sources may not result
# in the same image content that was tested, e.g. if a base image changed in the meantime.
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]-(alpha|beta|rc)\.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
pull_request:
branches:
- '*'
Expand Down

0 comments on commit bc194d8

Please sign in to comment.