From 9aadeb1fc5d4f204897d9a7bfc034c54affd24f8 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Tue, 29 Oct 2024 19:16:45 +0100 Subject: [PATCH] Ignore default branch --- .circleci/config.yml | 68 +++++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8bc19fc..6fd7376 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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