balena-allwinner/.github/workflows/build_and_deploy.yml
Alex Gonzalez 3c8d45dfce workflows: build and deploy: allow multi-digit revisions
According to github action syntax [1], there is no special character
to denote a match on zero or more of the preceding character, so
replace `[0-9]?` which only matches zero or one of the preceding
characters with a `*`.

[1] https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet

[skip ci]

Changelog-entry: trigger deploy builds on multi-digit revisions too
Signed-off-by: Alex Gonzalez <alexg@balena.io>
2023-02-27 13:57:35 +01:00

17 lines
392 B
YAML

name: 'Deploy on release tag'
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+\+?r?e?v?*
- v20[0-9][0-9].[0-1]?[1470].[0-9]+
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release-on-tag:
uses: balena-os/github-workflows/.github/workflows/build_and_deploy.yml@v0.0.12
with:
deployTo: "production"
secrets: inherit