From 63ddcda95a4b519b974527ee54f5ce995780d242 Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Mon, 9 Jan 2023 20:40:29 -0500 Subject: [PATCH] Update CCI config for better SemVer support (#6) --- .circleci/config.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5bf6414..1669100 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,21 +56,16 @@ workflows: release-wf: jobs: - test: - filters: + filters: &semverFilters branches: ignore: /.*/ tags: - # Simplified SemVer regex - only: /^v\d+\.\d+\.\d+$/ + # SemVer regex + only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/ - gor/release: version: "1.14.1" go-version: "1.19.4" - filters: - branches: - ignore: /.*/ - tags: - # Simplified SemVer regex - only: /^v\d+\.\d+\.\d+$/ + filters: *semverFilters post-steps: - persist_to_workspace: root: "." @@ -80,12 +75,7 @@ workflows: - deb-publish: requires: - gor/release - filters: - branches: - ignore: /.*/ - tags: - # Simplified SemVer regex - only: /^v\d+\.\d+\.\d+$/ + filters: *semverFilters jobs: test: