Skip to content

Commit

Permalink
Ignore default branch (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin Bisson <[email protected]>
  • Loading branch information
marians and QuentinBisson authored Oct 30, 2024
1 parent 3b60293 commit b172071
Showing 1 changed file with 36 additions and 32 deletions.
68 changes: 36 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,47 @@ orbs:
workflows:
go-build:
jobs:
- architect/go-build:
name: go-build
binary: heartbeatctl
filters:
- architect/go-build:
name: go-build
binary: heartbeatctl
filters:
# Needed to trigger job also on git tag.
tags:
only: /^v.*/
tags:
only: /^v.*/

- architect/go-build:
name: go-build-heartbeatctl-linux-amd64
binary: build/heartbeatctl-linux-amd64/heartbeatctl
os: linux
filters:
branches:
only: main
- architect/go-build:
name: go-build-heartbeatctl-linux-amd64
binary: build/heartbeatctl-linux-amd64/heartbeatctl
os: linux
filters:
branches:
only: main
# Needed to trigger job also on git tag.
tags:
only: /^v.*/
tags:
only: /^v.*/

- architect/go-build:
name: go-build-heartbeatctl-darwin-amd64
binary: build/heartbeatctl-darwin-amd64/heartbeatctl
os: darwin
filters:
branches:
only: main
- architect/go-build:
name: go-build-heartbeatctl-darwin-amd64
binary: build/heartbeatctl-darwin-amd64/heartbeatctl
os: darwin
filters:
branches:
only: main
# Needed to trigger job also on git tag.
tags:
only: /^v.*/
tags:
only: /^v.*/

- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- go-build
filters:
- architect/push-to-registries:
context: architect
name: push-to-registries
requires:
- go-build
filters:
# Needed to trigger job also on git tag.
tags:
only: /^v.*/
tags:
only: /^v.*/

branches:
ignore:
- main
- master

0 comments on commit b172071

Please sign in to comment.