Skip to content

Commit

Permalink
Update CCI config for better SemVer support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech authored Jan 10, 2023
1 parent b9c90ae commit 63ddcda
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "."
Expand All @@ -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:
Expand Down

0 comments on commit 63ddcda

Please sign in to comment.