Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore default branch with 'push-to-registries' and 'push-to-app-catalog' #144

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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